X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=doc%2Fluatexja.dtx;h=7c27d29b6805a2ea72c549414d757a5c678cd3a9;hb=55a3d0259d58f0ced648662986e92fc94c08f1f4;hp=01a4f76d10d1cf826f05d6e67d389b853ecb972f;hpb=eca447320377eb00cd1f2dc4f4abdb7d0041b8b9;p=luatex-ja%2Fluatexja.git
diff --git a/doc/luatexja.dtx b/doc/luatexja.dtx
index 01a4f76..7c27d29 100644
--- a/doc/luatexja.dtx
+++ b/doc/luatexja.dtx
@@ -72,7 +72,12 @@
\usepackage{luatexja-adjust}%\ltjdisableadjust
\advance\leftmargini-1\zw\advance\leftmarginii-1\zw
%
-
+%\long\def\fakefn#1#2{\par\noindent{\footnotesize\hbox to1.8em{\hss#1}#2\par}}
+%<*ja>
+\long\def\fakefn#1#2{%
+ \par{\footnotesize\advance\leftskip 3\zw\parindent1\zw\noindent
+ \llap{#1\hskip.3\zw}#2\par}}
+%
%%%%%%%% listings
%%%%%%%% IVS
@@ -202,10 +207,12 @@
width:\hfill\ #2\cr height:\hfill\ #3\cr depth:\hfill\ #4\cr
}}}}}\,}
+\makeatletter
\def\myghost{\ifmmode\else\ltjalchar"200C \fi}
-\protected\def\Param#1{\myghost\hyperlink{fld:#1}{\underline{\smash{\textsf{#1}}}}\myghost} % parameter name
+\def\Param#1{\texorpdfstring{\@Param{#1}}{#1}} % parameter name
+\protected\def\@Param#1{\myghost\hyperlink{fld:#1}{\underline{\smash{\textsf{#1}}}}\myghost}
\protected\def\DParam#1{\myghost\hypertarget{fld:#1}{\underline{\smash{\textsf{#1}}}}\myghost} % parameter name (definition)
-\protected\def\Pkg#1{\textsf{#1}} % packages/classes
+\def\Pkg#1{\texorpdfstring{\textsf{#1}}{#1}} % packages/classes
\ltjsetparameter{alxspmode={"200C,allow}}
\begin{document}
@@ -482,7 +489,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 +506,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 +531,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>
@@ -633,18 +640,18 @@ and \emph{Japanese fonts} for fonts used in \textbf{JAchar}.
%The following packages are needed for the \LuaTeX-ja\ package.
%\LuaTeX-jaããã±ã¼ã¸ã®åä½ã«ã¯æ¬¡ã®ããã±ã¼ã¸é¡ãå¿
è¦ã§ããï¼
\begin{itemize}
-\item \LuaTeX\ beta-0.85.0 (or later)
+\item \LuaTeX\ 1.0.0 (or later)
\item \Pkg{luaotfload} v2.6 (or later)
\item \Pkg{adobemapping} (Adobe cmap and pdfmapping files)
\item \Pkg{etoolbox}, \Pkg{everysel} (if you want to use \LuaTeX-ja with \LaTeXe)
\item \Pkg{ltxcmds}, \Pkg{pdftexcmds}, \Pkg{filehook}, \Pkg{atbegshi}
-\item \Pkg{fontspec} v2.4 (or later)
+\item \Pkg{fontspec} v2.5c (or later)
%\item \emph{IPAex fonts} (\url{http://ipafont.ipa.go.jp/})
%\item \emph{IPAexãã©ã³ã(\url{http://ipafont.ipa.go.jp/})}
\end{itemize}
-%In summary, \LuaTeX-ja version 20160404.0 (or~later) no longer supports \TeX~Live~2015.
+%In summary, \LuaTeX-ja version 20180825.0 (or~later) no longer supports \TeX~Live~2016.
%<*ja>
-è¦ç´ããã¨ï¼ãã¼ã¸ã§ã³20160404.0以éã®\LuaTeX-jaã¯\TeX~Live~2015以åã§ã¯åä½ããªã\footnote{%
+è¦ç´ããã¨ï¼ãã¼ã¸ã§ã³20180825.0以éã®\LuaTeX-jaã¯\TeX~Live~2016以åã§ã¯åä½ããªã\footnote{%
ãã£ã¨ãï¼èªåã§\LuaTeX ã®ãã¤ããªãSubversionãªãã¸ããªãããã«ããã¦ããã°è©±ã¯å¥ã§ããï¼
}ï¼
%
@@ -672,21 +679,6 @@ IPAex fonts are also available in these distributions.
W32\TeX ã«ããã¦ã¯IPAexãã©ã³ã㯠\texttt{luatexja.tar.xz} å
ã«ããï¼
%
-% %<*ja>
-% ä¾ãã°\TeX~Live~2015ãå©ç¨ãã¦ãããªãï¼\LuaTeX-jaã¯\TeX~Live manager (\texttt{tlmgr})ã
-% 使ã£ã¦ã¤ã³ã¹ãã¼ã«ãããã¨ãã§ããï¼
-% \begin{lstlisting}
-% $ tlmgr install luatexja
-% \end{lstlisting}
-% %
-% %<*en>
-% If you are using \TeX~Live~2015, you can install \LuaTeX-ja
-% from \TeX~Live manager (\texttt{tlmgr}):
-% \begin{lstlisting}
-% $ tlmgr install luatexja
-% \end{lstlisting}
-% %
-
%\paragraph{Manual installation}
%\paragraph{æåã¤ã³ã¹ãã¼ã«æ¹æ³}
@@ -815,8 +807,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 +818,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 +869,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 +918,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 +955,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
@@ -1016,9 +1011,9 @@ By default, the following fonts are used for these two families.
\bottomrule
\end{tabular}
\end{center}
-Note that the bold series in both family are same as the medium series of gothic
- family. There is no italic nor slanted shape for
- these \texttt{mc}~and~\texttt{gt}.
+Note that the bold series (series \texttt{bx}~or~\texttt{b}) in both family
+ are same as the medium series of gothic family.
+ There is no italic nor slanted shape for these \texttt{mc}~and~\texttt{gt}.
%
%<*ja>
\item \pLaTeX ã¨åæ§ã«ï¼æ¨æºã§ã¯ãææä½ããã´ã·ãã¯ä½ãã®2種é¡ãç¨ããï¼
@@ -1044,6 +1039,11 @@ Note that the bold series in both family are same as the medium series of gothic
ã©ã¡ãã®ãã¡ããªã«ããã¦ãï¼å¤ªå(\cs{bfseries})ã®ãã©ã³ãã¯
ã´ã·ãã¯ä½ä¸å(\cs{gtfamily}\cs{mdseries})ã§ä½¿ããããã©ã³ãã¨åãã§ãããã¨ã«æ³¨æï¼
ã¾ãï¼ã©ã¡ãã®ãã¡ããªã§ãã¤ã¿ãªãã¯ä½ã»ã¹ã©ã³ãä½ã¯å®ç¾©ãããªãï¼
+
+ åæã®å¤ªåã表ãã·ãªã¼ãºåã¯ï¼ï¼å
ã
ã®Computer Modernã
+ 太åã«\texttt{bx}ãç¨ãã¦ãããã¨ããï¼ä¼çµ±çã«\texttt{bx}~(Bold Extended)ã使ããã¦ããï¼
+ ãããï¼å¤ªåã«ã·ãªã¼ãº\texttt{b}ã使ããã©ã³ããå¢ãã¦ããããï¼
+ ãã¼ã¸ã§ã³20180616.0以éã§ã¯åæã®å¤ªåã¨ãã¦\texttt{bx},~\texttt{b}ã®ä¸¡æ¹ãæ±ããããã«ããï¼
%
%\item Japanese characters in math mode are typeset by the font family \texttt{mc}.
@@ -1086,6 +1086,15 @@ Note that the bold series in both family are same as the medium series of gothic
\renewcommand{\kanjifamilydefault}{\gtdefault}
\end{lstlisting}
+%<*ja>
+\item \pLaTeX ã¨åæ§ã«ï¼\texttt{mc},~\texttt{gt}両ãã¡ããªã«ã¯ãå¾å±æ¬§æãæ¸ä½ãå®ç¾©ããã¦ããï¼
+ ãããã¯\cs{userelfont}ã\cs{selectfont}ï¼ãï¼ãã®ä»ã®ãå®éã«ã
+ ãã©ã³ããå¤æ´ããå½ä»¤ï¼ã®åã§å®è¡ãããã¨ã«ãã使ããã¨ãã§ããï¼
+
+ \pLaTeX ã§ã¯æ¨æºã®æ¬§æãã©ã³ãã¯OT1ã¨ã³ã³ã¼ãã£ã³ã°ã®Computer Modern Roman (\texttt{cmr})%
+ ã§ãã£ããï¼2017年以éã®\LuaLaTeX ã§ã¯TUã¨ã³ã³ã¼ãã£ã³ã°ã®latin Modern Roman (\texttt{lmr})%
+ ã«å¤æ´ããã¦ããï¼ãã®ããï¼å段è½ã§è¿°ã¹ããå¾å±æ¬§æããï¼Latin Modern Romanã«è¨å®ãã¦ããï¼
+%
\end{itemize}
@@ -1104,9 +1113,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>
ããããªããï¼ä¸è¨ã®è¨å®ã¯æ¥æ¬èªã®ææ¸ã«ã¨ã£ã¦ååã¨ã¯è¨ããªãï¼
@@ -1122,11 +1133,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>
@@ -1204,17 +1219,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)}
@@ -1277,7 +1292,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+}+ ã¯ï¼å¼æ°ã«ããåæå´ã欧æ
@@ -1286,7 +1301,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>
@@ -1310,8 +1325,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}
@@ -1367,17 +1382,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:
@@ -1404,16 +1419,21 @@ TrueTypeã»OpenTypeãã©ã³ãã容æã«æ±ãããã®ããã±ã¼ã¸ã§ã
%
%<*en>
-In the \Pkg{luatexja-fontspec} package, the following seven~commands are defined as
-counterparts of original commands in the \Pkg{fontspec} package:
+In the \Pkg{luatexja-fontspec} package, several commands are defined as
+counterparts of original commands in the \Pkg{fontspec} package
+(see \autoref{tab:ltj_fntspc}):
%
%<*ja>
-\Pkg{luatexja-fontspec}ããã±ã¼ã¸ã§ã¯ï¼ä»¥ä¸ã®7ã¤ã®ã³ãã³ãã\Pkg{fontspec}
-ããã±ã¼ã¸ã®å
ã®ã³ãã³ãã«å¯¾å¿ãããã®ã¨ãã¦å®ç¾©ãã¦ããï¼
+\Pkg{luatexja-fontspec}ããã±ã¼ã¸ã§ã¯ï¼\autoref{tab:ltj_fntspc}ã®
+ãåæãè¡ã«ç¤ºããå½ä»¤ã\Pkg{fontspec}ããã±ã¼ã¸ã®å
ã®ã³ãã³ãï¼ã欧æãè¡ï¼
+ã«å¯¾å¿ãããã®ã¨ãã¦å®ç¾©ãã¦ããï¼
%
%<*en>
-\begin{center}\small
-\begin{tabular}{ccccc}
+\begin{table}
+\caption{Commands of \Pkg{luatexja-fontspec}}\label{tab:ltj_fntspc}
+\medskip
+{\centering\small
+\begin{tabular}{cllll}
\toprule
Japanese fonts
&\cs{jfontspec}&\cs{setmainjfont}&\cs{setsansjfont}&\cs{setmonojfont}$^*$\\
@@ -1421,18 +1441,33 @@ alphabetic fonts
&\cs{fontspec}&\cs{setmainfont}&\cs{setsansfont}&\cs{setmonofont}\\
\midrule
Japanese fonts
-&\cs{newjfontfamily}&\cs{newjfontface}
-&\cs{defaultjfontfeatures}&\cs{addjfontfeatures}\\
+&\cs{newjfontfamily}&\cs{renewjfontfamily}$^{**}$&\cs{setjfontfamily}$^{**}$\\
+alphabetic fonts
+&\cs{newfontfamily}&\cs{renewfontfamily}$^{**}$&\cs{setfontfamily}$^{**}$\\
+\midrule
+Japanese fonts
+&\cs{newjfontface}&\cs{defaultjfontfeatures}&\cs{addjfontfeatures}\\
alphabetic fonts
-&\cs{newfontfamily}&\cs{newfontface}
-&\cs{defaultfontfeatures}&\cs{addfontfeatures}\\
+&\cs{newfontface}&\cs{defaultfontfeatures}&\cs{addfontfeatures}\\
\bottomrule
-\end{tabular}
-\end{center}
+\end{tabular}\par}
+\medskip
+\fakefn{$^*$}{%
+ \cs{setmonojfont} is defined if and only if \texttt{match} option is specified.}
+\fakefn{$^{**}$}{%
+ \cs{renewfontfamily}~and~\cs{setfontfamily} are new commands
+ in \Pkg{fontspec}~v2.6h (2018/7/30).
+ Hence, \Pkg{luatexja-fontspec} define \cs{renewjfontfamily}~and~\cs{setjfontfamily}
+ only when \Pkg{fontspec}~v2.6h (or later) is used.
+}
+\end{table}
%
%<*ja>
-\begin{center}\small
-\begin{tabular}{ccccc}
+\begin{table}
+\caption{\Pkg{luatexja-fontspec}ã§å®ç¾©ãããå½ä»¤}\label{tab:ltj_fntspc}
+\medskip
+{\centering\small
+\begin{tabular}{cllll}
\toprule
åæ
&\cs{jfontspec}&\cs{setmainjfont}&\cs{setsansjfont}&\cs{setmonojfont}$^*$\\
@@ -1440,14 +1475,28 @@ alphabetic fonts
&\cs{fontspec}&\cs{setmainfont}&\cs{setsansfont}&\cs{setmonofont}\\
\midrule
åæ
-&\cs{newjfontfamily}&\cs{newjfontface}
-&\cs{defaultjfontfeatures}&\cs{addjfontfeatures}\\
+&\cs{newjfontfamily}&\cs{renewjfontfamily}$^{**}$&\cs{setjfontfamily}$^{**}$\\
欧æ
-&\cs{newfontfamily}&\cs{newfontface}
-&\cs{defaultfontfeatures}&\cs{addfontfeatures}\\
+&\cs{newfontfamily}&\cs{renewfontfamily}$^{**}$&\cs{setfontfamily}$^{**}$\\
+\midrule
+åæ
+&\cs{newjfontface}&\cs{defaultjfontfeatures}&\cs{addjfontfeatures}\\
+欧æ
+&\cs{newfontface}&\cs{defaultfontfeatures}&\cs{addfontfeatures}\\
\bottomrule
-\end{tabular}
-\end{center}
+\end{tabular}\par}
+
+\medskip
+\fakefn{$^*$}{\cs{setmonojfont} 㯠\texttt{match} ãªãã·ã§ã³ã
+æå®ãããæã®ã¿å®ç¾©ãããï¼}
+\fakefn{$^{**}$}{%
+ \cs{renewfontfamily} 㨠\cs{setfontfamily} ã¯
+ \Pkg{fontspec}~v2.6h (2018/7/30)ã§æ°ãã«è¿½å ãããå½ä»¤ã§ããï¼
+ ãã®ããï¼\Pkg{luatexja-fontspec}ã \cs{renewjfontfamily} 㨠\cs{setjfontfamily} ã
+ å®ç¾©ããã®ã¯v2.6h以éã®\Pkg{fontspec}ã使ç¨ããæã®ã¿ã«ãªã£ã¦ããï¼
+}
+
+\end{table}
%
% The package option of \Pkg{luatexja-fontspec} are the followings:
@@ -1478,13 +1527,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}
@@ -1604,13 +1663,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,
@@ -1681,7 +1740,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}
@@ -2147,10 +2206,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>
@@ -2350,7 +2409,6 @@ However, the penalty inserted after it is 10 which is the \Param{postbreakpenalt
``ã¢'', not 20.
%
%<*ja>
-\newpage
\subsection{ç¦åå¦çé¢é£ãã©ã¡ã¼ã¿ã¨OpenTypeã®font feature}
ç¦åå¦çã \Param{kanjiskip}, \Param{xkanjiskip} ã®æ¿å
¥ã«é¢é£ãããã©ã¡ã¼ã¿ã®ãã¡
\begin{quote}
@@ -2359,7 +2417,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ã®é©ç¨ã«ããåè§ã«ã¿ã«ãã®ãï½±ã
@@ -2468,7 +2526,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.
@@ -2485,7 +2543,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}ãæ¿å
¥å¯ã]
@@ -2528,23 +2586,23 @@ for \LuaTeX, \emph{to match the \cs{catcode} setting with that of \XeTeX.}
%
%<*ja>
ãã¤ãã£ãã«Unicodeå
¨é¨ã®æåãæ±ãã\XeTeX ã\LuaTeX ã§ã¯ï¼
-æåãå¶å¾¡ç¶´å
ã§ä½¿ç¨ã§ãããã¯é常ã®æ¬§ææåã¨åãã \cs{catcode}
-ã§æå®ãããã¨ã¨ãªãï¼plain \XeTeX ã«ããã \cs{catcode} ã®åæè¨å®ã¯\
-\texttt{unicode-letters.tex} ä¸ã«è¨è¿°ããã¦ããï¼plain \LuaTeX ã§ã¯ããã
-å
ã«ãã \texttt{luatex-unicode-letters.tex} ãç¨ãã¦ããï¼
-\LaTeX ã§ã¯ \cs{catcode} ã®è¨å®ã¯ã«ã¼ãã«ã« \texttt{unicode-letters.def} ã¨ãã¦çµ±åããï¼
+æåãå¶å¾¡ç¶´å
ã§ä½¿ç¨ã§ãããã¯é常ã®æ¬§ææåã¨åãã\cs{catcode}%
+ã§æå®ãããã¨ã¨ãªãï¼plain \XeTeX ã«ããã\cs{catcode}ã®åæè¨å®ã¯%
+\texttt{unicode-letters.tex}ä¸ã«è¨è¿°ããã¦ããï¼plain \LuaTeX ã§ã¯ããã
+å
ã«ãã\texttt{luatex-unicode-letters.tex}ãç¨ãã¦ããï¼
+\LaTeX ã§ã¯\cs{catcode}ã®è¨å®ã¯ã«ã¼ãã«ã«\texttt{unicode-letters.def}ã¨ãã¦çµ±åããï¼
ãã®ãã¡ã¤ã«ã\XeLaTeX, \LuaLaTeX ã®ä¸¡æ¹ãç¨ãã¦ããï¼
-ã ãï¼\XeTeX ã«ããã \cs{catcode} ã®åæè¨å®ã¨
+ã ãï¼\XeTeX ã«ããã\cs{catcode}ã®åæè¨å®ã¨
\LuaTeX ã«ãããããã¯ä¸è´ãã¦ããªãï¼
\begin{itemize}
- \item \texttt{luatex-unicode-letters.tex} ã®å
ã«ãªã£ã\
-\texttt{unicode-letters.tex} ãå¤ã
- \item \texttt{unicode-letters.tex} å¾åé¨ã \texttt{unicode-letters.def} å¾åé¨ã§ã¯
-\cs{XeTeXcharclass} ã®è¨å®ãè¡ãªã£ã¦ããï¼
-ããã«ãã£ã¦æ¼¢åãä»®åï¼ããã³å
¨è§è±æ°åã® \cs{catcode} ã11ã«è¨å®ããã¦ããï¼
-ãããï¼\texttt{luatex-unicode-letters.tex} ã§ã¯ãã®ãå¾åé¨ãã
-ã¾ããã¨çç¥ããã¦ããï¼ã¾ã\LuaLaTeX ã§ã \texttt{unicode-letters.def} å¾åé¨ã¯å®è¡ãããª
+ \item \texttt{luatex-unicode-letters.tex} ã®å
ã«ãªã£ã
+ \texttt{unicode-letters.tex}ãå¤ã
+ \item \texttt{unicode-letters.tex} å¾åé¨ã\texttt{unicode-letters.def}å¾åé¨ã§ã¯
+\cs{XeTeXcharclass}ã®è¨å®ãè¡ãªã£ã¦ããï¼
+ããã«ãã£ã¦æ¼¢åãä»®åï¼ããã³å
¨è§è±æ°åã®\cs{catcode}ã11ã«è¨å®ããã¦ããï¼
+ãããï¼\texttt{luatex-unicode-letters.tex}ã§ã¯ãã®ãå¾åé¨ãã
+ã¾ããã¨çç¥ããã¦ããï¼ã¾ã\LuaLaTeX ã§ã\texttt{unicode-letters.def}å¾åé¨ã¯å®è¡ãããª
ãï¼
\end{itemize}
è¨ãæããã¨ï¼
@@ -2555,10 +2613,10 @@ for \LuaTeX, \emph{to match the \cs{catcode} setting with that of \XeTeX.}
\LuaLaTeX ã§ã¯æ¼¢åãä»®åãå¶å¾¡ç¶´å
ã«
使ç¨ãããã¨ãå¯è½ã«ãªã£ããï¼å
¨è§è±æ°åã¯ç¸å¤ããã使ç¨ã§ããªãï¼
\end{description}
-ããã§ã¯ \pTeX ã§ä½¿ç¨ã§ãã \verb+\ï¼å¹´ç®è¥¿æ¦+\footnote{ç§ç è²»\LaTeX ã§ä½¿ç¨ããã¦ããããã§ãï¼}ãªã©ã使ããªããã¨ã¨ãªãï¼
+ããã§ã¯\pTeX ã§ä½¿ç¨ã§ãã\verb+\ï¼å¹´ç®è¥¿æ¦+\footnote{ç§ç è²»\LaTeX ã§ä½¿ç¨ããã¦ããããã§ãï¼}ãªã©ã使ããªããã¨ã¨ãªãï¼
\LuaTeX-jaã¸ã®ç§»è¡ã§æéãçããï¼ãã®ããï¼\LuaTeX-jaã§ã¯
-\texttt{unicode-letters.tex} ã®å¾åé¨ã«ãããå
容ãèªåã§ããããï¼
-çµæã¨ãã¦\textbf{\XeTeX ã«ãããåæè¨å®ã¨åãã«ãªãããã«ãã¦ããï¼}
+\texttt{unicode-letters.tex}ã®å¾åé¨ã«ãããå
容ãèªåã§ããããï¼
+çµæã¨ãã¦\emph{\XeTeX ã«ãããåæè¨å®ã¨åãã«ãªãããã«ãã¦ããï¼}
%
\begin{table}
@@ -2752,7 +2810,9 @@ We implemented this for debugging purpose.
The fifth column (\emph{utod} direction) corresponds the ``\texttt{tate (math) direction}'' of \pTeX.
Directions can be changed by \cs{yoko},~\cs{tate}, \cs{dtou},~\cs{utod},
-only when the current list is null. Also, the direction of a math formula is changed to
+only when the current list is null.
+These commands cannot be executed in unrestricted horizontal modes, nor math modes.
+The direction of a math formula is changed to
\emph{utod}, when the direction outside the math formula is \emph{tate} (vertical writing).
%
@@ -2766,6 +2826,8 @@ Down-TO-Upã®æå³ãªã®ã ããï¼\cs{dtou} ã使ç¨ããæ©ä¼ã¯ãªãã
çµæ¹åã¯ï¼\cs{yoko},~\cs{tate}, \cs{dtou},~\cs{utod} ããããã使ç¨ãããã¨ã§ï¼
ç¾å¨ä½æä¸ã®ãªã¹ããããã¯ã¹ã空ã®æã«ã®ã¿å¤æ´å¯è½ã§ããï¼
+ãã ãï¼ç¾å¨ã®ã¢ã¼ããéå¶éæ°´å¹³ã¢ã¼ããï¼æä¸ï¼å¥è¡ç«ã¦åããï¼æ°å¼ã¢ã¼ãã§ããã¨ãã«ã¯
+çµæ¹åãå¤æ´ãããã¨ã¯åºæ¥ãªãï¼
ã¾ãï¼ç¸¦çµä¸ã®æ°å¼å
ã®ããã¯ã¹ã¯\pTeX ã¨åãããã«çµæ¹åã \cs{utod} ã¨ãªãï¼
%
@@ -3240,7 +3302,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
@@ -3477,7 +3539,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}
@@ -3553,6 +3615,28 @@ JFMä¸ã«ããã \texttt{kanjiskip\_natural}, \texttt{kanjiskip\_stretch},\
3ãã¼ã¯åã³æå¹åãããï¼\texttt{-ltjksp}, \texttt{+ltjksp} ãè¤æ°åæå®ããå ´åã¯ï¼
æå¾ã«æå®ãããã®ãæå¹ã¨ãªãï¼
%
+%<*en>
+\paragraph{\texttt{ltjksp}}
+\label{pg:ltjksp}
+\texttt{kanjiskip\_natural}, \texttt{kanjiskip\_stretch},\
+\texttt{kanjiskip\_shrink} keys (Page~\pageref{pg:ksp_nat}) makes tha
+\LuaTeX-ja inserts not only a glue which is specified by a JFM, and also
+the natural width/stretch part/shrink part of \Param{kanjiskip}.
+
+This functionality is disabled by \texttt{-ltjksp} specification.
+\begin{LTXexample}[width=16\zw]
+\leavevmode
+\ltjsetparameter{kanjiskip=0pt plus 3\zw}
+\vrule\hbox to 15\zw{ãããããï¼ãã}\vrule
+
+\jfont\G=file:KozMinPr6N-Regular.otf%
+ :jfm=ujis;-ltjksp at 9.2487pt
+\G\leavevmode%
+\vrule\hbox to 15\zw{ãããããï¼ãã}\vrule
+\end{LTXexample}
+%
+
+
%\subsection{\cs{tfont}}
@@ -3610,14 +3694,27 @@ JFMä¸ã«ããã \texttt{kanjiskip\_natural}, \texttt{kanjiskip\_stretch},\
This command admits the same syntax used in \cs{font}~and~\cs{jfont}.
A font defined by~\cs{tfont} differs the following points from that by~\cs{jfont}:
\begin{itemize}
- \item Both \texttt{vert}~and~\texttt{vrt2} Opentype features are activated,
- unless they are explicitly activated or deactivated (as the third line in the example below).
+ \item OpenType Feature~\texttt{vrt2}%
+ \footnote{If the font does not define \texttt{vrt2} feature,
+ use \texttt{vert} instead.} is automatically activated,
+ unless \texttt{vert}~and//or~\texttt{vrt2} are explicitly activated
+ or deactivated (as the second line in the example below).
\begin{lstlisting}
-\tfont\S=file:KozMinPr6N-Regular.otf:jfm=ujisv
- % vert and vrt2 are automatically activated
+\tfont\S=file:KozMinPr6N-Regular.otf:jfm=ujisv % vrt2 is automatically activated
\tfont\T=file:KozMinPr6N-Regular.otf:jfm=ujisv;-vert % vert and vrt2 are not activated
+\tfont\U=file:ipaexm.ttf:jfm=ujisv
+ % vert is automatically activated, since this font does not have vrt2
\end{lstlisting}
- \item ...
+ \item Sometimes \texttt{vert} and/or \texttt{vrt2} are not activated
+ while one specified activation of these feature.
+ This is because the font does not define these features in current combination of
+ script~tag and language~system~identifier.
+
+ In this situation, \LuaTeX-ja performs all replacements which is defined in~\texttt{vert}
+ feature for \emph{some} scripts for \emph{some} languages.
+ \item Furthermore, a glyph is automatically rotated 90~degrees,
+ if it is not replaced by \texttt{vert} feature for \emph{any} script
+ for \emph{any} language, and if it is marked as `r''~or~``Tr'' in UAX~\#50.
\item One have to specify the name of vertical JFM in \texttt{jfm=}.
\LuaTeX-ja ships following vertical JFMs:
\begin{description}
@@ -3635,15 +3732,33 @@ A font defined by~\cs{tfont} differs the following points from that by~\cs{jfont
\cs{tfont} ã§å®ç¾©ããã縦çµç¨åæãã©ã³ãã¯ï¼
以ä¸ã®ç¹ã \cs{jfont} ã«ãã横çµç¨åæãã©ã³ãã¨ã¯ç°ãªãï¼
\begin{itemize}
- \item èªåçã« \texttt{vert}, \texttt{vrt2} ã®ä¸¡OpenType featureãæå¹åãããï¼
-ä½ãï¼ä»¥ä¸ã®ä¾ã®3è¡ç®ã«ç¤ºãããã«ï¼æ示çã« \texttt{vert}, \texttt{vrt2}ï¼ã®ããããï¼ã®
-æå¹ã»ç¡å¹ãæå®ããå ´åã¯å¥ã§ããï¼
+ \item æ示çã« \texttt{vert}, \texttt{vrt2}ï¼ã®ããããï¼ã®
+ æå¹ã»ç¡å¹ãæå®ããå ´åãé¤ãï¼èªåçã« OpenType feature~\texttt{vrt2} ã®æå¹åã
+ æå®ããããã®ã¨ã¿ãªããã
+ \footnote{ãããã©ã³ãã\texttt{vrt2}ãå®ç¾©ãã¦ããªãã£ãå ´åï¼ä»£ããã«
+ \texttt{vert}ãç¨ããï¼}ï¼
\begin{lstlisting}
-\tfont\S=file:KozMinPr6N-Regular.otf:jfm=ujisv
- % vert and vrt2 are automatically activated
+\tfont\S=file:KozMinPr6N-Regular.otf:jfm=ujisv % vrt2 is automatically activated
\tfont\T=file:KozMinPr6N-Regular.otf:jfm=ujisv;-vert % vert and vrt2 are not activated
+\tfont\U=file:ipaexm.ttf:jfm=ujisv
+ % vert is automatically activated, since this font does not have vrt2
\end{lstlisting}
- \item \ref{ssec-math}ç¯ã§è¿°ã¹ãï¼æ°å¼ä¸ã®åæãã©ã³ãã«ã¯ç¸¦çµç¨åæãã©ã³ãã¯æå®ã§ããªãï¼
+ \item \texttt{vert}, \texttt{vrt2} ã®å°ãªãã¨ãä¸ã¤ã®æå¹ãæå®ããå ´åã«ãé¢ãããï¼
+ script tagã¨language system identifierã®å¤ã®çµã¿åããã«ãã£ã¦
+ å®éã«ã¯æå¹ã«ãªããªãã£ãå ´åï¼\LuaTeX-jaã¯
+ \begin{quote}
+ ã©ããã®script,~languageã§å®ç¾©ããã¦ãã\texttt{vert}ã«ãã
+ ï¼åä¸ã°ãªãããåä¸ã°ãªãã¸ã®ï¼ç½®æãå
¨é¨é©ç¨ãã
+ \end{quote}
+ ã¨ããæåãåã\footnote{%
+ ä¾ãã°ï¼Windows~7ã«ä»å±ãã¦ããSimHeiã§ã¯ï¼\texttt{vert}ã¯Scriptã\texttt{hani}ï¼
+ Languageã\texttt{CHN}ã¨ããç¶æ³ã§ã®ã¿å®ç¾©ããã¦ããï¼ãããï¼\Pkg{luaotfload}ã§ã¯
+ ãã®script,~languageã®çµã¿åãããæå®ãããã¨ã¯ã§ããªãã®ã§ï¼
+ \Pkg{luaotfload}ãã®ã¾ã¾ã§ã¯\texttt{vert}ãé©ç¨ããããã¨ã¯ã§ããªãï¼
+ }ï¼
+ \item ããã«ï¼ããããªãscript,~languageã§ã\texttt{vert}ã«ããç½®æãããªããã°ãªã
+ ã®ãã¡ï¼UAX~\#50ã§``r''ãããã¯``Tr''ã¨æå®ããã¦ãããã®ã¯90度èªåå転ãããï¼
+ \item \ref{ssec:math}ç¯ã§è¿°ã¹ãï¼æ°å¼ä¸ã®åæãã©ã³ãã«ã¯ç¸¦çµç¨åæãã©ã³ãã¯æå®ã§ããªãï¼
\item \texttt{jfm=}\ ã®é¨åã«ã¯ç¸¦çµç¨JFMãæå®ããï¼
以ä¸ã®ç¸¦çµç¨JFMã\LuaTeX-jaã«ã¯å梱ããã¦ããï¼%ããï¼éãã\autoref{tab-difjfm-tate}ã«ç¤ºããï¼
\begin{description}
@@ -3662,7 +3777,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,
@@ -3765,7 +3880,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}
@@ -4223,7 +4338,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{\{, \}}ãï¼
@@ -4251,6 +4366,9 @@ JFMã«ãã£ã¦æ¬æ¥æ¿å
¥ãããã°ã«ã¼ã®ä»ã«
èªç¶é·ã»ç¸®ã¿éåè§ï¼ä¼¸ã³é0ã®ã°ã«ã¼
ã¨ãªã£ã¦ãããï¼ããã«\Param{kanjiskip}ã®ä¼¸ã³éã« \texttt{kanjiskip\_stretch}ï¼ããã§ã¯1ï¼ãæã
ãåã ã伸ã³ããã¨ã許ãããï¼
+ \item ä¸æ¹ï¼éãæ¬å¼§é¡ã¨é常ã®æåã®éï¼ã¾ãé常ã®æåã¨éãæ¬å¼§é¡ã®éã¯
+ èªç¶é·ã»ç¸®ã¿éã»ä¼¸ã³é0ã®ã°ã«ã¼ã ãï¼\Param{kanjiskip}ã®ç¸®ã¿éã«
+ \texttt{kanjiskip\_shrink}ï¼ããã§ã¯1ï¼ãæããåã ã縮ããã¨ã許ãããï¼
\end{itemize}
ã¨ãªã£ã¦ããï¼å¾ã£ã¦ï¼ä»¥ä¸ã®ãããªçµççµæãå¾ãï¼
@@ -4259,6 +4377,10 @@ JFMã«ãã£ã¦æ¬æ¥æ¿å
¥ãããã°ã«ã¼ã®ä»ã«
\leavevmode
\ltjsetparameter{kanjiskip=0pt plus 3\zw}
\vrule\hbox to 15\zw{ãããããï¼ãã}\vrule
+
+\vrule\hbox{ãããããï¼ãã}\vrule\par
+\ltjsetparameter{kanjiskip=0pt minus \zw}
+\vrule\hbox to 6.5\zw{ãããããï¼ãã}\vrule
\end{LTXexample}
\end{cslist}
@@ -4272,7 +4394,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
@@ -4293,6 +4415,10 @@ a glue whose natural part and shrink part are both half-width, while its stretch
Again, this glue also can be stretched
as much as the stretch part of \Param{kanjiskip} times the value of
\texttt{kanjiskip\_stretch} key (1 in this case).
+ \item Between an ideographic opening bracket and an ordinal letter
+ and between an ordinal letter and an ideographic closing bracket,
+ we have a glue whose natural part and stretch part are both zero, while its shrink part as much as
+ the shrink part of \Param{kanjiskip}.
\end{itemize}
Hence we have the following result:
@@ -4301,11 +4427,15 @@ Hence we have the following result:
\leavevmode
\ltjsetparameter{kanjiskip=0pt plus 3\zw}
\vrule\hbox to 15\zw{ãããããï¼ãã}\vrule
+
+\vrule\hbox{ãããããï¼ãã}\vrule\par
+\ltjsetparameter{kanjiskip=0pt minus \zw}
+\vrule\hbox to 6.5\zw{ãããããï¼ãã}\vrule
\end{LTXexample}
\end{cslist}
%
-
+
\item[end\_stretch=, end\_shrink=]
%<*ja>
ï¼ä»»æï¼ãã¼ã¸ã§ã³1ã®ã¿ï¼
@@ -4320,24 +4450,24 @@ Hence we have the following result:
\item[end\_adjust=\{, , ...\}]
%<*ja>
-ï¼ä»»æï¼ãã¼ã¸ã§ã³2ã®ã¿ï¼
+ï¼ä»»æï¼ãã¼ã¸ã§ã³2以éï¼
åªå
é ä½ä»ãè¡é·èª¿æ´ãæå¹ã§ããï¼ãã¤ç¾å¨ã®æåã¯ã©ã¹ã®æåã
è¡æ«ã«æ¥ãæã«ï¼ãã®æåã¨è¡æ«ã®éã«ã¯æå®ãããå¤ã®ããããã®å¤§ããã®ã«ã¼ã³ã
- æ¿å
¥ãããï¼\autoref{ssec-adj}åç
§ï¼ï¼
+ æ¿å
¥ãããï¼\autoref{ssec:adj}åç
§ï¼ï¼
ãã¼ã¸ã§ã³1ã«ããã
\begin{lstlisting}[escapechar=\$]
end_stretch = $a$, end_shrink = $b$
\end{lstlisting}
-ã¨ããæå®ã¯ï¼ãã¼ã¸ã§ã³2ã§ã¯æ¬¡ã®æå®ã¨åãã«ãªãï¼
+ã¨ããæå®ã¯ï¼ãã¼ã¸ã§ã³2以éã§ã¯æ¬¡ã®æå®ã¨åãã«ãªãï¼
\begin{lstlisting}[escapechar=\$]
end_adjust = {$-b$, 0.0, $a$}
\end{lstlisting}
ããçãä¸ã® \texttt{0.0} ããªãå ´åã¯ï¼$a$ã$-b$ãããããã®ã«ã¼ã³ã常ã«è¡æ«ã«è¿½å ãããï¼
%
%<*en>
-(optional, version~2 only)
+(optional, version~2 or~later)
%
\end{cslist}
@@ -4482,7 +4612,7 @@ The following is the list of imaginary characters:
\item['glue']
%(version 3~or~later) A boundary between \textbf{JAchar}, and, a glue or kern.
-%ï¼ãã¼ã¸ã§ã³3以éï¼ï¼\textbf{JAchar}ã¨glueï¼kernã¨ã®å¢çï¼
+%ï¼ãã¼ã¸ã§ã³3以éï¼\textbf{JAchar}ã¨glueï¼kernã¨ã®å¢çï¼
\item[$-1$]
%The left/right boundary of an inline math formula.
@@ -4550,7 +4680,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,
@@ -4895,7 +5025,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
@@ -5125,7 +5255,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}]\
@@ -5141,7 +5271,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}).
%
@@ -5170,7 +5300,7 @@ The default value is \texttt{paverage}. \dots
%
%<*ja>
ããã©ã«ãå¤ã¯ \texttt{paverage} ã§ããï¼
-åã
ã®å¤ã«ããå·®ç°ã®è©³ç´°ã¯\ref{ssec-cluster-wa}ç¯ã®ããå³ç©ºç½ãã®ç®åºããåç
§ãã¦ã»ããï¼
+åã
ã®å¤ã«ããå·®ç°ã®è©³ç´°ã¯\ref{ssec:cluster-wa}ç¯ã®ããå³ç©ºç½ãã®ç®åºããåç
§ãã¦ã»ããï¼
%
\item[\DParam{jacharrange}\,=]
@@ -5196,7 +5326,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.
@@ -5395,6 +5525,56 @@ The correct way is using a temporary register.
\end{itemize}
+
+%<*en>
+\subsection{Alternative Commands to \cs{ltjsetparameter}}
+The basic method to set parameters of \LuaTeX-ja is to use
+\cs{ltjsetparameter}~or~\cs{ltjglobalsetparameter}.
+However, these commands are slow, because they parse a key-value list,
+so several alternative commands are used in \LuaTeX-ja.
+\emph{This subsection is not for general \LuaTeX-ja users.}
+
+\paragraph{Setting \Param{kanjiskip}~or~\Param{xkanjiskip}}
+In \Pkg{ltjsclasses}, every size-changing command such as \cs{Large}
+changes \cs{kanjiskip}~and~\cs{xkanjiskip}.
+But a simple implementation, as the code below, is slow since
+two key-value lists are parsed by \cs{ltjsetparameter}:
+\begin{lstlisting}
+ \ltjsetparameter{kanjiskip=0\zw plus .1\zw minus .01\zw}
+ \@tempskipa=\ltjgetparameter{xkanjiskip}
+ \ifdim\@tempskipa>\z@
+ \if@slide
+ \ltjsetparameter{xkanjiskip=0.1em}
+ \else
+ \ltjsetparameter{xkanjiskip=0.25em plus 0.15em minus 0.06em}
+ \fi
+ \fi
+\end{lstlisting}
+
+Hence, \LuaTeX-ja defines more primitive commands, namely \cs{ltj@setpar@global},
+\cs{ltjsetkanjiskip}, and~\cs{ltjsetxkanjiskip}. Here
+\begin{quote}
+ \lstinline+\ltj@setpar@global\ltjsetkanjiskip 10pt+
+\end{quote}
+and \lstinline+\ltjsetparameter{kanjiskip=10pt}+ has the same effect.
+The actual code of \Pkg{ltjsclasses} is shown below:
+\begin{lstlisting}
+ \ltj@setpar@global
+ \ltjsetkanjiskip{\z@ plus .1\zw minus .01\zw}
+ \@tempskipa=\ltjgetparameter{xkanjiskip}
+ \ifdim\@tempskipa>\z@
+ \if@slide
+ \ltjsetxkanjiskip.1em
+ \else
+ \ltjsetxkanjiskip.25em plus .15em minus .06em
+ \fi
+ \fi
+\end{lstlisting}
+
+Note that using \cs{ltjsetkanjiskip}~or~\cs{ltjsetxkanjiskip} alone,
+that is, without executing \cs{ltj@setpar@global} in advance, is \emph{not} supported.
+%
+
%<*ja>
\subsection{\cs{ltjsetparameter} ã®ä»£æ¿}
ååã¨ãã¦å種å
é¨ãã©ã¡ã¼ã¿ã®è¨å®ã«ã¯ \cs{ltjsetparameter} ãããã¯
@@ -5403,7 +5583,7 @@ The correct way is using a temporary register.
\LuaTeX-ja ã®å
é¨ã§ã¯ããé«éã«å®è¡ã§ããå¥ã®å½¢å¼ãç¨ãã¦ããï¼
\emph{æ¬ç¯ã¯ä¸è¬å©ç¨è
ããã®å
容ã§ã¯ãªãï¼}
-\paragraph{\Param{kanjiskip}, \Param{xkanjiskip} ã®è¨å®}
+\paragraph{\Param{kanjiskip}, \Param{xkanjiskip}ã®è¨å®}
\pLaTeXe æ°ããã¥ã¡ã³ãã¯ã©ã¹ã§ã¯ï¼
\begin{lstlisting}
\def\@setfontsize#1#2#3{%
@@ -5666,7 +5846,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:
@@ -5735,7 +5915,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}ãï¼ã¤ã¾ã欧æãã©ã³ãã§åºåããããåæãã©ã³ãã§åºåãã
ããã決ã¾ãï¼
@@ -5746,7 +5926,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
@@ -5759,19 +5939,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}ç¯ã§è¿°ã¹ã¦ããªãã£ãå½ä»¤ã«ã¤ãã¦
è¨è¿°ãã¦ããï¼
%
@@ -5898,17 +6078,16 @@ assignment, where \cs{DeclareRelationFont} does a global assignment.
\item[\cs{userelfont}]
%<*en>
-Change current alphabetic font encoding/family/\dots\ to the `accompanied' alphabetic
- font family with respect to current Japanese font family,
- which was set by
- \cs{DeclareRelationFont} or \cs{SetRelationFont}.
-Like \cs{fontfamily}, \cs{selectfont} is required to take an effect.
+(Only)~at the next call of \cs{selectfont},
+ change current alphabetic font encoding/family/\dots\ to the `accompanied' alphabetic
+ font family with respect to current Japanese font family,
+ which was set by
+ \cs{DeclareRelationFont} or \cs{SetRelationFont}.
%
%<*ja>
-ç¾å¨ã®æ¬§æãã©ã³ãã®ã¨ã³ã³ã¼ãã£ã³ã°ï¼ãã¡ããªï¼â¦â¦ ãï¼
+次åï¼ã®ã¿ï¼ã®\cs{selectfont}ã®å®è¡æã«ï¼ç¾å¨ã®æ¬§æãã©ã³ãã®ã¨ã³ã³ã¼ãã£ã³ã°ï¼ãã¡ããªï¼â¦â¦ ãï¼
\cs{DeclareRelationFont} ã \cs{SetRelationFont} ã§æå®ããã
ç¾å¨ã®åæãã©ã³ãã«å¯¾å¿ãããå¾å±æ¬§æããã©ã³ãã«å¤æ´ããï¼
-\cs{fontfamily} ã®ããã«ï¼æå¹ã«ããããã«ã¯ \cs{selectfont} ãå¿
è¦ã§ããï¼
%
\item[\cs{adjustbaseline}]
@@ -5949,11 +6128,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}ç¯ãåç
§ãããã¨ï¼
%
@@ -5976,7 +6155,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å¼æ°ã®åæãã©ã³ãã使ã£ã¦çµãããã«æ示ããï¼
@@ -5996,7 +6175,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
@@ -6022,18 +6201,18 @@ As closing this subsection, we shall introduce an example of
%<*ja>
ãã®ç¯ã®çµããã«ï¼\cs{SetRelationFont} 㨠\cs{userelfont} ã®ä¾ã
ç´¹ä»ãã¦ãããï¼\cs{userelfont} ã®ä½¿ç¨ã«ãã£ã¦ï¼ãabcãã®é¨åã®ãã©ã³ãã
-Avant Garde (OT1/pag/m/n) ã«å¤ãã£ã¦ãããã¨ããããï¼
+Latin Modern Sans Serif (TU/lmss/m/n) ã«å¤ãã£ã¦ãããã¨ããããï¼
%
\begin{LTXexample}[width=0.3\textwidth]
\makeatletter
-\SetRelationFont{JY3}{\k@family}{m}{n}{OT1}{pag}{m}{n}
+\SetRelationFont{JY3}{\k@family}{m}{n}{TU}{lmss}{m}{n}
% \k@family: current Japanese font family
\userelfont\selectfont ãããabc
\end{LTXexample}
%\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
@@ -6223,7 +6402,7 @@ for example, the meaning of \cs{TU\cs{textquotedblleft}} is \cs{ltjalchar8220\lt
\begin{table}[t]
\centering\small
- \caption{strut}\label{tab:strutbox}
+ \caption{strut}\label{tab:strutbox}\medskip
\begin{tabular}{llcccl}
\toprule
\textbf{box}&\textbf{direction}&\textbf{width}&\textbf{height}&\textbf{depth}
@@ -6270,9 +6449,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},
@@ -6280,7 +6459,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æ©è½ã«å ãã¦ï¼åæçã®ã³ãã³ãã«ã¯
@@ -6294,7 +6473,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.
@@ -6306,8 +6485,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} ãã¼ãç¨ããéã¯
@@ -6318,11 +6497,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]
@@ -6394,16 +6573,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} ãã¼ã«æå®ããå¤ã¯ï¼æ¬¡ã®ããã«äºéã®ã³ã³ãåºåããªã¹ãã§ããï¼
%
@@ -6503,7 +6682,7 @@ OpenTypeæ©è½æå®ã¯
\subsection{\Pkg{luatexja-otf}}
-\label{ssec-ltjotf}
+\label{ssec:ltjotf}
%<*en>
This optional package supports typesetting glyphs
by specifying a CID number.
@@ -6609,7 +6788,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{%
@@ -6640,11 +6819,11 @@ with priority&%
\\
\bottomrule
\end{tabular}\par}
-\smallskip
+\medskip
-Note: the value of
+\fakefn{}{The value of
\Param{kanjiskip} is 0\,pt${}^{+1/5\,\mathrm{em}}_{-1/5\,\mathrm{em}}$ in this figure,
-for making the difference obvious.
+for making the difference obvious.}
%\caption{è¡é·èª¿æ´}\label{fig:adj}
%\caption{Line adjustment}\label{fig:adj}
\end{figure}
@@ -6656,12 +6835,12 @@ for making the difference obvious.
%<*ja>
ãã®è¿½å ããã±ã¼ã¸ã¯ä»¥ä¸ã®æ©è½ãæä¾ããï¼è©³ç´°ãªä»æ§ã«ã¤ãã¦ã¯\ref{sec-adjspec}ç« ãåç
§ãã¦ã»ããï¼
\begin{description}
-\item[è¡æ«æåã®ä½ç½®èª¿æ´]
+ \item[è¡æ«æåã®ä½ç½®èª¿æ´]
\pTeX ã§ã¯ï¼ï¼æ¯éã¯ã¨ãããï¼ãè¡æ«ã®èªç¹ã¯ã¶ãä¸ããäºååããå
¨è§åãã®ããããã«ãã®ããã«
è¡æ«æåã¨å®éã®è¡æ«ã®ä½ç½®é¢ä¿ã2éã以ä¸ã«ãããã¨ã¯é¢åã§ãã£ãï¼
åæãã©ã³ãã¡ããªãã¯ã ãã§ã¯ã常ã«è¡æ«ã®èªç¹ã¯ã¶ãä¸ããã¨ãã£ããã¨ããã§ããï¼
åã®æã«æ¸ãããã¨ãå®ç¾ããã«ã¯
-\begin{lstlisting}
+ \begin{lstlisting}
\def\ã{%
\penalty10000 % ç¦åããã«ãã£
\hbox to0pt{ã\hss}\penalty0 % ã¶ãä¸ãã®å ´å
@@ -6671,48 +6850,184 @@ for making the difference obvious.
\end{lstlisting}
ã®ãããªå½ä»¤ãå®ç¾©ãï¼æä¸ã®å
¨ã¦ã®å¥ç¹ã \lstinline+\ã+ ã§æ¸ããã¨ãå¿
è¦ã ã£ãï¼
-\Pkg{luatexja-adjust}ããã±ã¼ã¸ã¯ï¼ä¸ã§è¿°ã¹ãè¡æ«æåã¨å®éã®è¡æ«ã¨ã®ä½ç½®é¢ä¿ã
-2éã以ä¸ããèªåçã«é¸æããæ©è½ãæä¾ããï¼
-\pdfTeX ã¨åãããã«ï¼ã\TeX ã«ããè¡åå²ã®å¾ã§è¡æ«æåã®ä½ç½®ãè£æ£ãããæ¹æ³ã¨
- ãè¡åå²ã®éç¨ã§è¡æ«æåã®ä½ç½®ãèæ
®ã«å
¥ãããæ¹æ³ãé¸ã¹ãããã«ããï¼
-\Pkg{luatexja-adjust}ããã±ã¼ã¸ã®æ¢å®ã§ã¯åè
ï¼ï¼
+ \Pkg{luatexja-adjust}ããã±ã¼ã¸ã¯ï¼ä¸ã§è¿°ã¹ãè¡æ«æåã¨å®éã®è¡æ«ã¨ã®ä½ç½®é¢ä¿ã
+ 2éã以ä¸ããèªåçã«é¸æããæ©è½ãæä¾ããï¼
+ \pdfTeX ã¨åãããã«ï¼ã\TeX ã«ããè¡åå²ã®å¾ã§è¡æ«æåã®ä½ç½®ãè£æ£ãããæ¹æ³ã¨
+ ãè¡åå²ã®éç¨ã§è¡æ«æåã®ä½ç½®ãèæ
®ã«å
¥ãããæ¹æ³ãé¸ã¹ãããã«ãã
+ ï¼\Pkg{luatexja-adjust}ããã±ã¼ã¸ã®æ¢å®ã§ã¯åè
ï¼ï¼
-\item[åªå
é ä½ä»ãã®è¡é·èª¿æ´]
-\pTeX ã§ã¯ï¼è¡é·èª¿æ´ã«ããã¦åªå
度ã®æ¦å¿µãåå¨ããªãã£ãããï¼å³
-\ref{fig:adj}ä¸æ®µã«ãããåè§åã®å端ã¯ï¼\autoref{fig:adj}ä¸æ®µã®ããã«ï¼éµ
-æ¬å¼§å¨è¾ºã®ç©ºç½ã¨åæé空ç½(\Param{kanjiskip})ã®ä¸¡æ¹ã«ãã£ã¦è² æ
ãããï¼ã
-ããï¼ãæ¥æ¬èªçµçå¦çã®è¦ä»¶ã\cite{jlreq}ãJIS~X~4051~\cite{x4051}ã«ãã
-ã¦ã¯ï¼ãã®ãããªç¶æ³ã§ã¯å端ã¯éµæ¬å¼§å¨è¾ºã®ç©ºç½ã®ã¿ã§è² æ
ãï¼ãã®ä»ã®åæ
-æåã¯ãã¿çµã§çµã¾ããï¼\autoref{fig:adj}ä¸æ®µï¼ãã¨ã«ãªã£ã¦ããï¼
-\Pkg{luatexja-adjust}ããã±ã¼ã¸ã®æä¾ãã第2ã®æ©è½ã¯ï¼
-\cite{jlreq}ã\cite{x4051}ã«ãããè¦å®ã®ãããªï¼åªå
é ä½ä»ã
-ã®è¡é·èª¿æ´ã§ããï¼
-\begin{itemize}
- \item åªå
度ä»ãè¡é·èª¿æ´ã¯ï¼æ®µè½ãè¡åå²ããå¾ã«åã
ã®è¡ã«ã¤ãã¦è¡ããããã®ã§ããï¼
-ãã®ããï¼è¡åå²ã®ä½ç½®ã¯å¤åãããã¨ã¯ãªãï¼
+ \item[åªå
é ä½ä»ãã®è¡é·èª¿æ´]
+ \pTeX ã§ã¯ï¼è¡é·èª¿æ´ã«ããã¦åªå
度ã®æ¦å¿µãåå¨ããªãã£ãããï¼å³
+ \ref{fig:adj}ä¸æ®µã«ãããåè§åã®å端ã¯ï¼\autoref{fig:adj}ä¸æ®µã®ããã«ï¼éµ
+ æ¬å¼§å¨è¾ºã®ç©ºç½ã¨åæé空ç½(\Param{kanjiskip})ã®ä¸¡æ¹ã«ãã£ã¦è² æ
ãããï¼ã
+ ããï¼ãæ¥æ¬èªçµçå¦çã®è¦ä»¶ã\cite{jlreq}ãJIS~X~4051~\cite{x4051}ã«ãã
+ ã¦ã¯ï¼ãã®ãããªç¶æ³ã§ã¯å端ã¯éµæ¬å¼§å¨è¾ºã®ç©ºç½ã®ã¿ã§è² æ
ãï¼ãã®ä»ã®åæ
+ æåã¯ãã¿çµã§çµã¾ããï¼\autoref{fig:adj}ä¸æ®µï¼ãã¨ã«ãªã£ã¦ããï¼
+ \Pkg{luatexja-adjust}ããã±ã¼ã¸ã®æä¾ãã第2ã®æ©è½ã¯ï¼
+ \cite{jlreq}ã\cite{x4051}ã«ãããè¦å®ã®ãããªï¼åªå
é ä½ä»ã
+ ã®è¡é·èª¿æ´ã§ããï¼
+ \begin{itemize}
+ \item åªå
度ä»ãè¡é·èª¿æ´ã¯ï¼æ®µè½ãè¡åå²ããå¾ã«åã
ã®è¡ã«ã¤ãã¦è¡ããããã®ã§ããï¼
+ ãã®ããï¼è¡åå²ã®ä½ç½®ã¯å¤åãããã¨ã¯ãªãï¼
+
+ \verb+\hbox{...}+ ã¨ãã£ããéä¸ã§æ¹è¡ã§ããªãæ°´å¹³ããã¯ã¹ãã§ã¯ï¼ãã¨ãå¹
ãæå®ããã¦ãã¦ãï¼ç¡å¹ã§ããï¼
+ \item åªå
度ä»ãè¡é·èª¿æ´ãè¡ãã¨ï¼åæå¦çã°ã«ã¼ã®èªç¶é·ã¯å¤åããªããï¼ä¼¸ã³éã縮ã¿éã¯
+ ä¸è¬ã«å¤åããï¼ãã®ããï¼æ¢ã«çµã¾ãã段è½ã \cs{unhbox} ãªã©ãå©ç¨ãã¦çµã¿ç´ãå¦çã
+ è¡ãå ´åã«ã¯æ³¨æãå¿
è¦ã§ããï¼
+ \end{itemize}
+
+ \item[ãä¸èº«ã¾ã§ã¿ããè¡éãè¨ç®]
+ è¤æ°è¡ã«æ¸¡ãæç« ãçµçããã¨ãã«ã¯è¡éã«ç©ºããå
¥ããã¨ãæ®éã§ããï¼
+ \TeX ã§ã¯åè¡ãä¸ã¤ãã¤ã®æ°´å¹³ããã¯ã¹ããªãã¦ãããã¨ãæãåºãã¨ï¼é£ãåã£ã
+ 2ã¤ã®è¡ï¼ã¤ã¾ãæ°´å¹³ããã¯ã¹ï¼ã®éã®ç©ºãã¯æ¬¡ã®ããã«ãã¦æ±ºã¾ãã®ã ã£ãï¼
+ \begin{itemize}
+ \item ãé常ã«çµãã ã¨ãã®è¡éã$d$ãï¼\cs{baselineskip}ãã
+ ãåã®è¡ãã®æ·±ãã¨ã次ã®è¡ãã®é«ããå ãããã®ãå¼ããå¤ã¨ããï¼
+ \item $d\ge\cs{lineskiplimit}$ã®å ´åï¼
+ æ¨æºã®è¡éã\cs{baselineskip}ã§çµãã§ãååãªééãããã¨å¤æããï¼
+ 2è¡ã®éã«ã¯é·ã$d$ã®ç©ºç½ãæ¿å
¥ãããï¼ã¤ã¾ãè¡éãã¯\cs{baselineskip}ï¼
+ \item {\catcode`\<=12$d<\cs{lineskiplimit}$}ã®å ´åï¼
+ 2è¡ã®éã«ã¯é·ã\cs{lineskip}ã®ç©ºç½ãæ¿å
¥ãããï¼
+ ãã®ããï¼è¨å®å¤ã«ãããï¼å¤ãã®å ´åï¼è¡éãã¯\cs{baselineskip}ããåºããï¼
+ \end{itemize}
-\verb+\hbox{...}+ ã¨ãã£ããéä¸ã§æ¹è¡ã§ããªãæ°´å¹³ããã¯ã¹ãã§ã¯ï¼ãã¨ãå¹
ãæå®ããã¦ãã¦ãï¼ç¡å¹ã§ããï¼
- \item åªå
度ä»ãè¡é·èª¿æ´ãè¡ãã¨ï¼åæå¦çã°ã«ã¼ã®èªç¶é·ã¯å¤åããªããï¼ä¼¸ã³éã縮ã¿éã¯
-ä¸è¬ã«å¤åããï¼ãã®ããï¼æ¢ã«çµã¾ãã段è½ã \cs{unhbox} ãªã©ãå©ç¨ãã¦çµã¿ç´ãå¦çã
-è¡ãå ´åã«ã¯æ³¨æãå¿
è¦ã§ããï¼
-\end{itemize}
+ \begin{figure}[t]
+ \noindent\centering
+ \begin{minipage}[b]{18\zw}
+ \ltjenableadjust[profile=false, linestep=false]
+ â¦â¦ã ããï¼â ãã$\dfrac{a^2}{b} = \dfrac{1+\sqrt{5}}2$ï¼\\
+ ãã£ã¦$b=\dfrac{1-\sqrt{5}}2$ã§ããï¼\\
+ ãããâ¡å¼ã«ä»£å
¥ããã¨â¦â¦
+ \par\vskip\abovecaptionskip
+ \ltjenableadjust[profile=false, linestep=false]
+ \par\centering\leavevmode{\small (a)}
+ \end{minipage}%
+ \kern2\zw
+ \begin{minipage}[b]{18\zw}
+ \ltjenableadjust[profile]
+ â¦â¦ã ããï¼â ãã$\dfrac{a^2}{b} = \dfrac{1+\sqrt{5}}2$ï¼\\
+ ãã£ã¦$b=\dfrac{1-\sqrt{5}}2$ã§ããï¼\\
+ ãããâ¡å¼ã«ä»£å
¥ããã¨â¦â¦
+ \par\vskip\abovecaptionskip
+ \ltjenableadjust[profile=false, linestep=false]
+ \par\centering\leavevmode{\small (b)}
+ \end{minipage}\par
+ \caption{é«ãè¡ãé£ç¶ããã¨ãã®ç¶æ³}\label{fig:linegap1}
+ \end{figure}
+
+ ããã§ï¼\TeX ã¯è¡éãã®æ±ºå®ã§ãé«ãã»æ·±ããåã£ã¦ãããã®ã
+ è¡ã®ã©ã®æ°´å¹³ä½ç½®ã«ããããã¯ä¸åèæ
®ããªããã¨ã«æ³¨æãã¦ã»ããï¼ãã®ããï¼
+ \autoref{fig:linegap1}~(a)ã®ããã«ãå¿
è¦ä»¥ä¸ã«è¡éã空ãã¦è¦ãããç¶æ³ãèµ·ãããã¨ãããï¼
+
+ \Pkg{luatexja-adjust}ããã±ã¼ã¸ã§ã¯ï¼ãé常ã«çµãã ã¨ãã®è¡éã$d$ã
+ åè¡ã®ä¸èº«ã®æåã»ã°ã«ã¼ã»ããã¯ã¹ã®å¯¸æ³ãåæ¡ãã¦è¨ç®ããã¨ããæ¹æ³ã
+ å©ç¨ã§ããããã«ããï¼ãã®æ©è½ã使ãã¨ï¼\autoref{fig:linegap1}~(b)ã®ããã«
+ è¡éã®ç©ºããå¿
è¦ä»¥ä¸ã«å¤§ãããªããã¨ãé¿ãããã¨ãã§ããï¼
+ \begin{itemize}
+ \item 段è½ä¸ã®é£ãåã£ãäºè¡ã ãã§ãªãï¼è¡éã®ç©ºãã¯
+ æ°ãã«æ°´å¹³ããã¯ã¹$h$ãï¼å
é¨ã»å¤é¨åããï¼åç´ã¢ã¼ãã§è¿½å ããæã«ãèªåã§æ¿å
¥ãããï¼
+ ãã®å ´åã«ã¯ï¼å段è½ã§è¿°ã¹ããä¸èº«ã¾ã§ã¿ããå¦çã¯
+ \begin{itemize}
+ \item ç¾å¨ã®ãªã¹ãã«ãããæå¾ã®ãã¼ã
+ \footnote{æå¾ã®ãã¼ãã\cs{parskip}ã«ããã°ã«ã¼ã§ãã£ãå ´åã®ã¿
+ ããã«ä¸ã¤åã®ãã¼ããåç
§ãã}ãæ°´å¹³ããã¯ã¹$h'$ã§ããï¼ãã¤
+ \item \cs{prevdepth}ã®å¤ã¨ãã®$h'$ã®æ·±ãã®å¤ãä¸è´ãã¦ãã
+ \end{itemize}
+ å ´åã«ã®ã¿çºåããããã«ãã¦ããï¼
+ \item è¡ã®ä¸èº«ã«æ°´å¹³ããã¯ã¹$h''$ãå
¥ã£ã¦ãããã¨ããããï¼ãã®å ´åã¯$h''$ã®ä¸èº«ã¾ã§ã¯åç
§ããªãï¼
+ åç
§ããããã«ãã¦ãã¾ãã¨ï¼\cs{smash}ãªã©æåã§è¡ã£ãé«ãã»æ·±ã調æ´ã®æå³ããªããªã£ã¦ãã¾ãããã§ããï¼
+ \end{itemize}
+
+ \begin{figure}[t]
+ \noindent\centering
+ \begin{minipage}[b]{16\zw}
+ \ltjenableadjust[profile]
+ â¦â¦ã ããï¼â ãã$\dfrac{a^2}{b}= \dfrac{1+\sqrt{5}}2$ï¼\\
+ ãã£ã¦$b=\dfrac{1-\sqrt{5}}2$ã§ããï¼\\
+ ãããâ¡å¼ã«ä»£å
¥ããã¨â¦â¦
+ \par\vskip\abovecaptionskip
+ \ltjenableadjust[profile=false, linestep=false]
+ \par\centering\leavevmode{\small (a): ç¡å¹}
+ \end{minipage}%
+ \kern2\zw
+ \begin{minipage}[b]{16\zw}
+ \ltjsetparameter{linestep_factor=0.25}
+ \ltjenableadjust[profile, linestep]
+ â¦â¦ã ããï¼â ãã$\dfrac{a^2}{b} = \dfrac{1+\sqrt{5}}2$ï¼\\
+ ãã£ã¦$b=\dfrac{1-\sqrt{5}}2$ã§ããï¼\\
+ ãããâ¡å¼ã«ä»£å
¥ããã¨â¦â¦
+ \par\vskip\abovecaptionskip
+ \ltjenableadjust[profile=false, linestep=false]
+ \par\centering\leavevmode{\small (b): $0.25$\cs{baselineskip}å»ã¿}
+ \end{minipage}\par\medskip
+ \begin{minipage}[b]{16\zw}
+ \ltjsetparameter{linestep_factor=0.5}
+ \ltjenableadjust[profile, linestep]
+ â¦â¦ã ããï¼â ãã$\dfrac{a^2}{b} = \dfrac{1+\sqrt{5}}2$ï¼\\
+ ãã£ã¦$b=\dfrac{1-\sqrt{5}}2$ã§ããï¼\\
+ ãããâ¡å¼ã«ä»£å
¥ããã¨â¦â¦
+ \par\vskip\abovecaptionskip
+ \ltjenableadjust[profile=false, linestep=false]
+ \par\centering\leavevmode{\small (c): 0.5\cs{baselineskip}å»ã¿}
+ \end{minipage}%
+ \kern2\zw
+ \begin{minipage}[b]{16\zw}
+ \ltjsetparameter{linestep_factor=1}
+ \ltjenableadjust[profile, linestep]
+ â¦â¦ã ããï¼â ãã$\dfrac{a^2}{b} = \dfrac{1+\sqrt{5}}2$ï¼\\
+ ãã£ã¦$b=\dfrac{1-\sqrt{5}}2$ã§ããï¼\\
+ ãããâ¡å¼ã«ä»£å
¥ããã¨â¦â¦
+ \par\vskip\abovecaptionskip
+ \ltjenableadjust[profile=false, linestep=false]
+ \par\centering\leavevmode{\small (d): \cs{baselineskip}å»ã¿}
+ \end{minipage}\par
+ \caption{段éçãªè¡éãå¢å }\label{fig:linegap2}
+ \end{figure}
+
+ \item[段éçãªè¡éã調æ´]
+ æ¢ã«è¿°ã¹ãããã«ï¼
+ ãé常ã«çµãã ã¨ãã®è¡éã$d$ã\cs{lineskiplimit}ããå°ããå ´åï¼\TeX æ¨æºã§ã¯
+ è¡éã¯\cs{lineskip}ã¨ãªãã®ã ã£ãï¼
+ ãã®ã¨ãè¡éãã¯ãåã®è¡ã®æ·±ããï¼ã次ã®è¡ã®é«ããï¼\cs{lineskip}ã®3ã¤ã®åã«ãªãããã ãï¼
+ å ´åã«ãã£ã¦ã¯è¡éããã\cs{baselineskip}ã®æ´æ°åããªã©ã¨åãã®ããå¤ã«æãããã¨ããç¶æ³ã
+ èããããªãããªãï¼
+
+ \Pkg{luatexja-adjust}ããã±ã¼ã¸ã§ã¯ï¼{\catcode`\<=12$d<\cs{lineskiplimit}$}ã®ã¨ãã«
+ è¡éãã\cs{baselineskip}ã®\Param{linestep\_factor}åãã¤å¢æ¸ããã¦
+ \begin{quote}
+ è¡éã\cs{lineskip}以ä¸ã¨ãªããããªï¼
+ æå°ã®$(1+k\cdot \Param{linestep\_factor})\cs{baselineskip}$ï¼$k$ã¯æ´æ°ï¼ã®å¤
+ \end{quote}
+ ã¨ããæ©è½ãå©ç¨ã§ããããã«ããï¼
+ \autoref{fig:linegap2}ã®(a)ããã®æ©è½ãç¡å¹ã«ããç¶æ³ã§ï¼(b),~(c),~(d)ã
+ ãããã\Param{linestep\_factor}ã0.25,~0.5,~1ã¨ããç¶æ³ã§ããï¼
+
+ ãªãï¼ãã®æ©è½ã¯è¡¨çµæ(\cs{halign},~\cs{valign})ã«ã¯ç¡å¹ã§ããï¼
+ \LaTeX ã«ããã表çµç°å¢ï¼tabular, arrayãªã©ï¼ã§ã¯ï¼\cs{baselineskip},~\cs{lineskip}ã¯ã©ã¡ãã0ã«è¨å®ããã¦ããã®ã§
+ ï¼ä»£ããã«åè¡ã«\cs{@arstrut}ã¨ããæ¯æ±ãå
¥ãï¼ããã«æå³ããªããã¨ã¨ï¼
+ æ°å¼ãå
é¨ã§è¡¨çµã使ã£ã¦çµãalignç°å¢ãªã©ã§ã¯ããã£ã¦è¡éãä¸æãã«ãªã£ã¦ãã¾ãããã§ããï¼
\end{description}
-\Pkg{luatexja-adjust}ããã±ã¼ã¸ã¯ï¼ä¸è¨ã§è¿°ã¹ã2æ©è½ãæå¹å/ç¡å¹åããããã®
+\Pkg{luatexja-adjust}ããã±ã¼ã¸ã¯ï¼ä¸è¨ã§è¿°ã¹ã4æ©è½ãæå¹å/ç¡å¹åããããã®
以ä¸ã®å½ä»¤ãæä¾ããï¼ãããã¯ãã¹ã¦ã°ãã¼ãã«ã«å¹åãçºæ®ããï¼
\begin{cslist}
\item[\cs{ltjenableadjust[...]}]
-\verb+...+ ã«æå®ããkey-valueãªã¹ãã«å¾ãï¼ãè¡æ«æåã®ä½ç½®èª¿æ´ããåªå
é ä½ä»ãã®è¡é·èª¿æ´ããæå¹å/ç¡å¹åããï¼
+\verb+...+ ã«æå®ããkey-valueãªã¹ãã«å¾ãï¼ãè¡æ«æåã®ä½ç½®èª¿æ´ããåªå
é ä½ä»ãã®è¡é·èª¿æ´ã
+ ããä¸èº«ã¾ã§ã¿ããè¡éãè¨ç®ãã段éçãªè¡éã調æ´ããæå¹å/ç¡å¹åããï¼
æå®ã§ãããã¼ã¯ä»¥ä¸ã®éãï¼
\begin{description}
\item[\texttt{lineend=[false,true,extended]}]
è¡æ«æåã®ä½ç½®èª¿æ´ã®æ©è½ãç¡å¹å(\texttt{false})ï¼ãè¡åå²å¾ã«èª¿æ´ãã®å½¢ã§æå¹å(\texttt{true})ï¼
- ãè¡åå²ã®ä»®å®ã§èæ
®ã(\texttt{extended})ããï¼
+ ãè¡åå²ã®ä»®å®ã§èæ
®ãã®å½¢ã§æå¹å(\texttt{extended})ããï¼
\item[\texttt{priority=[false,true]}]
- åªå
é ä½ä»ãã®è¡é·èª¿æ´ãç¡å¹å(\texttt{false})ï¼ã¾ãã¯æå¹å(\texttt{true})ããï¼
+ åªå
é ä½ä»ãã®è¡é·èª¿æ´ãç¡å¹å(\texttt{false})ï¼ã¾ãã¯æå¹å(\texttt{true})ï¼
+ \item[\texttt{profile=[false,true]}]
+ ãä¸èº«ã¾ã§ã¿ããè¡éãè¨ç®ãç¡å¹å(\texttt{false})ï¼ã¾ãã¯æå¹å(\texttt{true})ï¼
+ \item[\texttt{linestep=[false,true]}]
+ 段éçãªè¡éã調æ´ãç¡å¹å(\texttt{false})ï¼ã¾ãã¯æå¹å(\texttt{true})ï¼
\end{description}
-両ãã¼ã¨ããã¼åã®ã¿ãæå®ããå ´åã¯å¤ã¨ãã¦\texttt{true}ãæå®ããããã®ã¨æ±ãããï¼
+ã©ã®ãã¼ã¨ããã¼åã®ã¿ãæå®ããå ´åã¯å¤ã¨ãã¦\texttt{true}ãæå®ããããã®ã¨æ±ãããï¼
äºææ§ã®çºï¼ãªãã·ã§ã³ç¡ãã§ãã \cs{ltjenableadjust}ãå¼ã³åºãããå ´åã¯ï¼
\begin{lstlisting}
@@ -6723,13 +7038,13 @@ for making the difference obvious.
\item[\cs{ltjdisableadjust}]
\Pkg{luatexja-adjust}ããã±ã¼ã¸ã®æ©è½ãç¡å¹åããï¼
\begin{lstlisting}
-\ltjenableadjust[lineend=false,priority=false]
+\ltjenableadjust[lineend=false,priority=false,profile=false,linestep=false]
\end{lstlisting}
ã¨å義ï¼
\end{cslist}
-ã¾ãï¼åªå
é ä½ä»ãã®è¡é·èª¿æ´ã®ããã«ï¼æ¬¡ã®2ãã©ã¡ã¼ã¿ã\cs{ltjsetparameter}å
ã§
-追å ãããï¼ä¸¡ãã©ã¡ã¼ã¿ã¨ãã°ãã¼ãã«ã«å¹åãçºæ®ããï¼
+ã¾ãï¼åªå
é ä½ä»ãã®è¡é·èª¿æ´ã®ããã«ï¼æ¬¡ã®3ãã©ã¡ã¼ã¿ã\cs{ltjsetparameter}å
ã§
+追å ãããï¼ããããã°ãã¼ãã«ã«å¹åãçºæ®ããï¼
\begin{cslist}[style=standard]
\item[\DParam{stretch\_priority}\,=\{\}]
\Param{kanjiskip}, \Param{xkanjiskip}ï¼ããã³ã\textbf{JAglue}以å¤ã®ã°ã«ã¼ããï¼
@@ -6748,8 +7063,14 @@ stretch_priority={kanjiskip=-35,xkanjiskip=-25,others=50}
\item[\DParam{shrink\_priority}\,=\{\}]
åæ§ã«ï¼ãè¡ãèªç¶é·ãã縮ãããå ´åã®èª¿æ´ã«ç¨ããåªå
度ãæå®ããï¼
ãã以å¤ã¯\Param{stretch\_priority}ã¨æå®ã®å½¢å¼ã¯å¤ãããªãï¼
+
+ \item[\DParam{linestep\_factor}\,=]
+ 段éçãªè¡éã調æ´ã®éï¼\cs{baselineskip}ã®ä½ååä½ã§è¡éããå¤ããããæå®ããï¼
+ 0ãæå®ããã¨ç¡å¹ã«ãªãã®ã¨å¤ãããªãï¼ã¾ãè² æ°ãæå®ããã¨ï¼
+ ãã®çµ¶å¯¾å¤ãæå®ããããã®ããã«æ±ãããï¼
+ åæå¤ã¯0.5ï¼ã¤ã¾ãåè¡åä½ï¼ã§ããï¼
\end{cslist}
-åæå¤ã¯\Param{stretch\_priority}, \Param{shrink\_priority}ã¨ã
+\Param{stretch\_priority}, \Param{shrink\_priority}ã®åæå¤ã¯ã©ã¡ãã
\begin{lstlisting}
{kanjiskip=-35,xkanjiskip=-25,others=50}
\end{lstlisting}
@@ -7254,12 +7575,12 @@ since we use same font for both series of gothic.
ãããï¼
ãã´ã·ãã¯ä½ã®ä¸åããåæã«å¤æ´ããããã¨ã«ãªãï¼
%
-\item[90jis]
-%Use 90JIS glyph variants if possible.
-%åºæ¥ãéã90JISã®åå½¢ã使ãï¼
-\item[jis2004]
-%Use JIS2004 glyph variants if possible.
-%åºæ¥ãéãJIS2004ã®åå½¢ã使ãï¼
+\item[jis90\textrm{,~}90jis]
+%Use JIS~X~0208:1990 glyph variants if possible.
+%åºæ¥ãéãJIS~X~0208:1990ã®åå½¢ã使ãï¼
+\item[jis2004\textrm{,~}2004jis]
+%Use JIS~X~0213:2004 glyph variants if possible.
+%åºæ¥ãéãJIS~X~0213:2004ã®åå½¢ã使ãï¼
\item[jfm\_yoko=]
%<*en>
Use the JFM \texttt{jfm-.lua} for horizontal direction, instead of \texttt{jfm-ujis.lua}~(default JFM).
@@ -7283,14 +7604,14 @@ Use the JFM \texttt{jfm-.lua} for vertical direction, instead of \texttt{jf
\end{cslist}
%<*en>
-Note that \texttt{90jis} and \texttt{jis2004} only affect with mincho,
+Note that \texttt{jis90},~\texttt{90jis}, \texttt{jis2004}~and~\texttt{2004jis} only affect with mincho,
gothic (and, possibly rounded gothic) families defined by this package.
-We didn't taken account of when both \texttt{90jis} and \texttt{jis2004} are specified.
+We didn't taken account of when more than one options among them are specified.
%
%<*ja>
-\texttt{90jis}ã¨\texttt{jis2004}ã«ã¤ãã¦ã¯æ¬ããã±ã¼ã¸ã§å®ç¾©ããã
+\texttt{jis90},~\texttt{90jis}, \texttt{jis2004},~\texttt{2004jis}ã«ã¤ãã¦ã¯æ¬ããã±ã¼ã¸ã§å®ç¾©ããã
ææä½ã»ã´ã·ãã¯ä½ï¼ã»ä¸¸ã´ã·ãã¯ä½ï¼ã«ã®ã¿æå¹ã§ããï¼
-両ãªãã·ã§ã³ãåæã«æå®ãããå ´åã®åä½ã«ã¤ãã¦ã¯å
¨ãèæ
®ãã¦ããªãï¼
+ããã4ãªãã·ã§ã³ã®ãã¡è¤æ°ãåæã«æå®ãããå ´åã®åä½ã«ã¤ãã¦ã¯å
¨ãèæ
®ãã¦ããªãï¼
%
%\subsubsection{Presets which support multi weights}
@@ -7663,17 +7984,17 @@ Note that HG~Mincho~E, HG~Gothic~E, HG Soei Kaku Gothic UB, and HG Maru Gothic P
are internally specified by:
\begin{description}
\item[default] by font name (\texttt{HGMinchoE}, etc.).
-\item[{\tt 90jis}] by file name (\texttt{hgrme.ttc}, \texttt{hgrge.ttc}, \texttt{hgrsgu.ttc}, \texttt{hgrsmp.ttf}).
-\item[{\tt jis2004}] by file name (\texttt{hgrme04.ttc}, \texttt{hgrge04.ttc}, \texttt{hgrsgu04.ttc}, \texttt{hgrsmp04.ttf}).
+\item[\texttt{jis90}, \texttt{90jis}] by file name (\texttt{hgrme.ttc}, \texttt{hgrge.ttc}, \texttt{hgrsgu.ttc}, \texttt{hgrsmp.ttf}).
+\item[\texttt{jis2004}, \texttt{2004jis}] by file name (\texttt{hgrme04.ttc}, \texttt{hgrge04.ttc}, \texttt{hgrsgu04.ttc}, \texttt{hgrsmp04.ttf}).
\end{description}
%
%<*ja>
ãªãï¼HGææEã»HGã´ã·ãã¯Eã»HGåµè±è§ã´ã·ãã¯UBã»HG丸ã´ã·ãã¯ä½PROã®4ã¤ã«ã¤ãã¦ã¯ï¼å
é¨ã§
\begin{description}
\item[æ¨æº] ãã©ã³ãåï¼\texttt{HGMinchoE} ãªã©ï¼
-\item[{\tt 90jis}æå®æ] ãã¡ã¤ã«å (%
+\item[\texttt{jis90}, \texttt{90jis}æå®æ] ãã¡ã¤ã«å (%
\texttt{hgrme.ttc}, \texttt{hgrge.ttc}, \texttt{hgrsgu.ttc}, \texttt{hgrsmp.ttf})
-\item[{\tt jis2004}æå®æ] ãã¡ã¤ã«å (%
+\item[\texttt{jis2004}, \texttt{2004jis}æå®æ] ãã¡ã¤ã«å (%
\texttt{hgrme04.ttc}, \texttt{hgrge04.ttc}, \texttt{hgrsgu04.ttc}, \texttt{hgrsmp04.ttf})
\end{description}
ã¨ãã¦æå®ãè¡ã£ã¦ããã®ã§æ³¨æãããã¨ï¼
@@ -7683,11 +8004,11 @@ are internally specified by:
%\subsubsection{æ°ããªããªã»ããã®å®ç¾©}
%<*ja>
-ãã¼ã¸ã§ã³********.0以éã§ã¯ï¼èªåã§æ°ããªããªã»ãããå®ç¾©ãããã¨ãåºæ¥ãããã«ãªã£ãï¼
+ãã¼ã¸ã§ã³20170904.0以éã§ã¯ï¼èªåã§æ°ããªããªã»ãããå®ç¾©ãããã¨ãåºæ¥ãããã«ãªã£ãï¼
以ä¸ã«èª¬æãã2å½ä»¤ã¯ããªã¢ã³ãã«ã§ããå®è¡ã§ããªãï¼
%
%<*en>
-From version~********.0, one can define new presets using \cs{ltjnewpreset},
+From version~20170904.0, one can define new presets using \cs{ltjnewpreset},
and use them by \cs{ltjapplypreset}. These two commands can only be used in the preamble.
%
\begin{cslist}