X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=doc%2Fluatexja.dtx;h=4dad142829a191b0775ffdff14f9bb3e14c048cd;hb=26c1be2a3b0b812eada662aae96e73977f4ccccb;hp=c7a853059c0ac0a2bb986c839c13d45aac6acd0d;hpb=779caaf35d98cd40d0831ce8f1be65e4405b9c70;p=luatex-ja%2Fluatexja.git
diff --git a/doc/luatexja.dtx b/doc/luatexja.dtx
index c7a8530..4dad142 100644
--- a/doc/luatexja.dtx
+++ b/doc/luatexja.dtx
@@ -1562,56 +1562,6 @@ The following presets are defined:
%ã¨ãã¦èªã¿è¾¼ã¿ï¼å°å¡æ¸ä½(Pr6N)ã使ããã¨ãæå®ãã¦ããï¼
% which means that Kozuka~Pr6N fonts will be used in this document.
-%<*ja>
-ä¸è¨ã®ããªã»ãã以å¤ã®åæãã©ã³ãè¨å®ã使ãããå ´åï¼æ¬æ¥ã¯
-\Pkg{luatexja-fontspec}ããã±ã¼ã¸ã®æä¾ãã
-\cs{setmainjfont}, \cs{setsansjfont}ã使ã£ã¦èªåã§æå®ããã¹ãã§ããï¼
-\texttt{custom}ãªãã·ã§ã³ã使ããã¨ã§ï¼\Pkg{luatexja-preset}ããã±ã¼ã¸ã®å
é¨ã«ç´æ¥ã¢ã¯ã»ã¹ãã¦
-\begin{lstlisting}
-\usepackage[kozuka-pr6n, % kozuka-pr6n ããªã»ãããåºç¤ã«ãã¦ï¼
- custom={
- mc=SourceHanSerif-Regular, % ææä½ï¼å
¨ã¦ã§ã¤ãï¼
- mc-l=SourceHanSerif-Bold, % ææä½ç´°å
- mc-m=KozMinPr6N-Regular, % ææä½ä¸å
- % mc-bx=KozMinPr6N-Bold, % ææä½å¤ªå
- % gt=HirakakuProN-W3, % ã´ã·ãã¯ä½ï¼å
¨ã¦ã§ã¤ãï¼
- % gt-m=SourceHanSans-Regular, % ã´ã·ãã¯ä½ä¸åï¼deluxe ãªãã·ã§ã³æå®æï¼
- % gt-bx=HiraKakuProN-W6,ular, % ã´ã·ãã¯ä½å¤ªå
- % gt-eb=HiraKakuProN-W6,ular, % ã´ã·ãã¯ä½æ¥µå¤ª
- mg-m=HG Maru Gothic PRO, % 丸ã´ã·ãã¯ä½
- },
- deluxe,expert,jis2004,match,nfssonly
-]{luatexja-preset}
-\end{lstlisting}
-ã®ããã«ãããã¨ãã§ãããï¼\texttt{custom}ãªãã·ã§ã³ã®æ¸å¼ã¯äºåãªãå¤æ´ããããã¨ããã
-ä¸ï¼\texttt{90jis}ã\texttt{JIS2004}ãªãã·ã§ã³ã¨ã®ç¸æ§ããã¾ãè¯ããªãã®ã§æ¨å¥¨ã¯ããªãï¼
-%
-%<*en>
-To use a Japanese font setting which does not match with any presets,
-the legitimate method is to use \cs{setmainjfont}~and~\cs{setsansjfont}
-which are provided by the \Pkg{luatexja-fontspec} package.
-
-One can use the \texttt{custom} option, such as
-\begin{lstlisting}
-\usepackage[kozuka-pr6n, % based on the kozuka-pr6n preset (Kozuka Pr6N),
- custom={
- mc=SourceHanSerif-Regular, % mincho family (all weights)
- mc-l=SourceHanSerif-Bold, % mincho light
- mc-m=KozMinPr6N-Regular, % mincho medium
- % mc-bx=KozMinPr6N-Bold, % mincho bold
- % gt=HirakakuProN-W3, % gothic family (all weights)
- % gt-m=SourceHanSans-Regular, % gothic medium (with deluxe option)
- % gt-bx=HiraKakuProN-W6,ular, % gothic bold
- % gt-eb=HiraKakuProN-W6,ular, % gothic extra bold
- mg-m=HG Maru Gothic PRO, % rounded gothic
- },
- deluxe,expert,jis2004,match,nfssonly
-]{luatexja-preset}
-\end{lstlisting}
-However, we do not recommend this \cs{custom} option;
-the format might change, and this \cs{custom} option is not well-compatible with
-\texttt{90jis}~nor~\cs{jis2004} options.
-%
%<*en>
\subsection{\cs{CID}, \cs{UTF}, and macros in \Pkg{japanese-otf} package}
@@ -2400,7 +2350,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}
@@ -2802,7 +2751,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).
%
@@ -2816,6 +2767,8 @@ Down-TO-Upã®æå³ãªã®ã ããï¼\cs{dtou} ã使ç¨ããæ©ä¼ã¯ãªãã
çµæ¹åã¯ï¼\cs{yoko},~\cs{tate}, \cs{dtou},~\cs{utod} ããããã使ç¨ãããã¨ã§ï¼
ç¾å¨ä½æä¸ã®ãªã¹ããããã¯ã¹ã空ã®æã«ã®ã¿å¤æ´å¯è½ã§ããï¼
+ãã ãï¼ç¾å¨ã®ã¢ã¼ããéå¶éæ°´å¹³ã¢ã¼ããï¼æä¸ï¼å¥è¡ç«ã¦åããï¼æ°å¼ã¢ã¼ãã§ããã¨ãã«ã¯
+çµæ¹åãå¤æ´ãããã¨ã¯åºæ¥ãªãï¼
ã¾ãï¼ç¸¦çµä¸ã®æ°å¼å
ã®ããã¯ã¹ã¯\pTeX ã¨åãããã«çµæ¹åã \cs{utod} ã¨ãªãï¼
%
@@ -3660,14 +3613,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}
@@ -3685,14 +3651,32 @@ 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 \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}ã«ç¤ºããï¼
@@ -7120,8 +7104,8 @@ package to use several ``presets'' of Japanese fonts.
This package provides functions in a part of \Pkg{japanese-otf} package (changing fonts)
and a part of \Pkg{PXchfon} package (presets) by Takayuki Yato.
-One can specified other options other than listed below.
-These are simply passed to the \Pkg{luatexja-fontspec}\footnote{if \texttt{nfssonly} option is
+Options which are given in \cs{usepackage} but not described in this~subsection
+are simply passed to the \Pkg{luatexja-fontspec}\footnote{if \texttt{nfssonly} option is
\emph{not} specified; in this case these options are simply ignored.}.
For example, the line~5 in below example is equivalent to lines 1--3.
%
@@ -7131,7 +7115,8 @@ For example, the line~5 in below example is equivalent to lines 1--3.
\Pkg{otf}ããã±ã¼ã¸ã®ä¸é¨ï¼å¤æ¸ä½åï¼ã¨å
«ç»å´ä¹æ°ã«ãã\Pkg{PXchfon}ããã±ã¼ã¸ã®ä¸é¨ï¼ããªã»ããæå®ï¼
ã¨ãåããããããªæ ¼å¥½ããã¦ããï¼
-ãªãã·ã§ã³ã¨ãã¦ï¼ä»¥ä¸ã®ãªã¹ãã«ãªããã®ãæå®ãããã¨ãã§ãããï¼ãããã¯
+ããã±ã¼ã¸èªã¿è¾¼ã¿æã«æ¸¡ããããªãã·ã§ã³ã®ãã¡ï¼
+æ¬ç¯ã«ãªããã®ãæå®ããå ´åï¼ãããã¯ãã®ã¾ã¾
\Pkg{luatexja-fontspec}ããã±ã¼ã¸ã«æ¸¡ããã\footnote{\texttt{nfssonly} ãªãã·ã§ã³ã
æå®ããã¦ããå ´åã¯ï¼\Pkg{luatexja-fontspec}ããã±ã¼ã¸ã¯èªã¿è¾¼ã¾ããªãã®ã§åç´ã«ç¡è¦ãã
ãï¼}ï¼ä¾ãã°ï¼ä¸ã®1--3è¡ç®ã¯5è¡ç®ã®ããã«ä¸è¡ã«ã¾ã¨ãããã¨ãã§ããï¼
@@ -7144,6 +7129,10 @@ For example, the line~5 in below example is equivalent to lines 1--3.
\usepackage[no-math,match,kozuka-pr6n]{luatexja-preset}
\end{lstlisting}
+%\subsubsection{General Options}
+%\subsubsection{ä¸è¬çãªãªãã·ã§ã³}
+\label{sssec:ltjpreset-general}
+
\begin{cslist}[before*=]
\item[fontspec%
%\textrm{~(enabled by default)}
@@ -7338,8 +7327,10 @@ We didn't taken account of when both \texttt{90jis} and \texttt{jis2004} are sp
両ãªãã·ã§ã³ãåæã«æå®ãããå ´åã®åä½ã«ã¤ãã¦ã¯å
¨ãèæ
®ãã¦ããªãï¼
%
-%\paragraph{Presets for multi weight}
-%\paragraph{å¤ã¦ã§ã¤ãç¨ããªã»ããã®ä¸è¦§}
+%\subsubsection{Presets which support multi weights}
+%\subsubsection{å¤ã¦ã§ã¤ãç¨ããªã»ããã®ä¸è¦§}
+\label{sssec:ltjpreset-multi}
+
%<*en>
Besides \texttt{morisawa-pro}~and~\texttt{morisawa-pr6n} presets,
fonts are specified by font name, not by file name.
@@ -7444,7 +7435,7 @@ Std/StdNãã©ã³ãã§ããï¼ãã®ä»ã¯Adobe-Japan1-5対å¿ã§ããï¼
\item[morisawa-pro] Morisawa Pro (Adobe-Japan1-4) fonts.
% \\*[-\dimexpr\medskipamount+\baselineskip\relax]
\item[morisawa-pr6n] Morisawa Pr6N (Adobe-Japan1-6, JIS04-savvy) fonts.
-\begin{center}\small
+\begin{center}\footnotesize
\begin{tabular}{ll>{\tt}l>{\tt}l}
\toprule
\bf family&\bf series&morisawa-pro&morisawa-pr6n\\
@@ -7622,11 +7613,11 @@ Std/StdNãã©ã³ãã§ããï¼ãã®ä»ã¯Adobe-Japan1-5対å¿ã§ããï¼
\end{tabular}
\end{center}
-
-
\end{cslist}
-%\paragraph{Presets for single weight}
-%\paragraph{åã¦ã§ã¤ãç¨ããªã»ããä¸è¦§}
+%\subsubsection{Presets which do not support multi weights}
+%\subsubsection{åã¦ã§ã¤ãç¨ããªã»ããä¸è¦§}
+\label{sssec:ltjpreset-single}
+
%<*en>
Next, we describe settings for using only single weight.
%
@@ -7647,16 +7638,17 @@ Next, we describe settings for using only single weight.
&IPA Gothic&IPAex Gothic&MS Gothic\\
%
%<*ja>
-\gtfamily ææä½&Ryumin-Lightï¼éåè¾¼ï¼
+\gtfamily ææ&Ryumin-Lightï¼éåè¾¼ï¼
&IPAææ&IPAexææ&MSææ\\
-\gtfamily ã´ã·ãã¯ä½&GothicBBB-Mediumï¼éåè¾¼ï¼
+\gtfamily ã´ã·ãã¯&GothicBBB-Mediumï¼éåè¾¼ï¼
&IPAã´ã·ãã¯&IPAexã´ã·ãã¯&MSã´ã·ãã¯\\
%
\bottomrule
\end{tabular}\par\medskip}
-%\paragraph{Using HG fonts}
-%\paragraph{HGãã©ã³ãã®å©ç¨}
+%\subsubsection{Presets which use HG fonts}
+%\subsubsection{HGãã©ã³ãã使ãããªã»ãã}
+\label{sssec:ltjpreset-hg}
%<*en>
We can use HG~fonts bundled with Microsoft~Office for realizing multiple weights.
In the table below, starred fonts (e.g., IPA~Gothic*) are used
@@ -7683,19 +7675,19 @@ only if \texttt{jis2004} or \texttt{nodeluxe} option is spefified.
\textit{gothic}&bold&HG Gothic E&HG Gothic E&HG Gothic E\\\cmidrule{2-5}
&extra bold&HG Soei Kaku Gothic UB&HG Soei Kaku Gothic UB&HG Soei Kaku Gothic UB\\\midrule
\textit{rounded gothic}&&
-HG Maru Gothic PRO&HG Maru Gothic PRO&HG Maru Gothic PRO\\
+HG MaruGothic M PRO&HG MaruGothic M PRO&HG MaruGothic M PRO\\
%
%<*ja>
&medium&IPAææ&IPAexææ&MSææ\\
-\smash{\raisebox{1.5ex}{\textgt{ææä½}}}%
+\smash{\raisebox{1.5ex}{\textgt{ææ}}}%
&bold&HGææE&HGææE&HGææE\\\midrule
&&IPAã´ã·ãã¯*&IPAexã´ã·ãã¯*&MSã´ã·ãã¯*\\
&\smash{\raisebox{1.5ex}{medium}}%
&HGã´ã·ãã¯M&HGã´ã·ãã¯M&HGã´ã·ãã¯M\\\cmidrule{2-5}
-\textgt{ã´ã·ãã¯ä½}&bold&HGã´ã·ãã¯E&HGã´ã·ãã¯E&HGã´ã·ãã¯E\\\cmidrule{2-5}
+\textgt{ã´ã·ãã¯}&bold&HGã´ã·ãã¯E&HGã´ã·ãã¯E&HGã´ã·ãã¯E\\\cmidrule{2-5}
&extra bold&HGåµè±è§ã´ã·ãã¯UB&HGåµè±è§ã´ã·ãã¯UB&HGåµè±è§ã´ã·ãã¯UB\\\midrule
-\textgt{丸ã´ã·ãã¯ä½}&&
-HG丸ã´ã·ãã¯ä½PRO&HG丸ã´ã·ãã¯ä½PRO&HG丸ã´ã·ãã¯ä½PRO\\
+\textgt{丸ã´ã·ãã¯}&&
+HG丸ã´ã·ãã¯M-PRO&HG丸ã´ã·ãã¯M-PRO&HG丸ã´ã·ãã¯M-PRO\\
%
\bottomrule
\end{tabular}\par\medskip}
@@ -7721,6 +7713,138 @@ are internally specified by:
ã¨ãã¦æå®ãè¡ã£ã¦ããã®ã§æ³¨æãããã¨ï¼
%
+%\subsubsection{Define/Use Custom Presets}
+%\subsubsection{æ°ããªããªã»ããã®å®ç¾©}
+
+%<*ja>
+ãã¼ã¸ã§ã³********.0以éã§ã¯ï¼èªåã§æ°ããªããªã»ãããå®ç¾©ãããã¨ãåºæ¥ãããã«ãªã£ãï¼
+以ä¸ã«èª¬æãã2å½ä»¤ã¯ããªã¢ã³ãã«ã§ããå®è¡ã§ããªãï¼
+%
+%<*en>
+From version~********.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}
+ \item[\cs{ltjnewpreset}\{\}\{\}]
+%<*ja>
+ æ°ãã«ã¨ããå称ã®ããªã»ãããå®ç¾©ããï¼ãã®å称ã¯ï¼
+ ãã§ã«å®ç¾©ããã¦ããããªã»ããåãï¼
+ \ref{sssec:ltjpreset-general}ã§å®ç¾©ããã¦ãããªãã·ã§ã³ï¼ããã«
+ 次ã®9ã¤ã¨éè¤ãã¦ã¯ãªããªãï¼
+ \begin{quote}
+ \ttfamily
+ mc mc-l mc-m mc-bx gt gt-m gt-bx gt-eb mg-m
+ \end{quote}
+
+ ã¯ï¼ããªã»ããåã以ä¸ã®ãã¼éã®ã³ã³ãåºåããªã¹ããæå®ããï¼
+ \begin{description}
+ \item[\ttfamily mc-l=] ææä½ç´°å(\cs{mcfamily}\cs{ltseries})
+ \item[\ttfamily mc-m=] ææä½ä¸å(\cs{mcfamily}\cs{mdseries})
+ \item[\ttfamily mc-bx=] ææä½å¤ªå(\cs{mcfamily}\cs{bfseries})
+ \item[\ttfamily gt-m=] ã´ã·ãã¯ä½ä¸å(\cs{gtfamily}\cs{mdseries})
+ \item[\ttfamily gt-bx=] ã´ã·ãã¯ä½å¤ªå(\cs{gtfamily}\cs{bfseries})
+ \item[\ttfamily gt-eb=] ã´ã·ãã¯ä½å¤ªå(\cs{gtfamily}\cs{ebseries})
+ \item[\ttfamily mg-m=] 丸ã´ã·ãã¯ä½(\cs{mgfamily})
+ \item[\ttfamily mc=] ææä½ã®ç´°åã»ä¸åã»å¤ªåå
¨é¨ãè¨å®ï¼
+ 以ä¸ãæå®ãããã¨ã¨åãã§ããï¼
+ \begin{quote}
+ \ttfamily mc-l=, mc-m=, mc-bx=
+ \end{quote}
+ \item[\ttfamily gt=] ã´ã·ãã¯ä½ã®ä¸åã»å¤ªåã»æ¥µå¤ªå
¨é¨ãè¨å®ï¼
+ 以ä¸ãæå®ãããã¨ã¨åãã§ããï¼
+ \begin{quote}
+ \ttfamily gt-m=, gt-bx=, gt-eb=
+ \end{quote}
+ \end{description}
+ ãªãï¼ããã±ã¼ã¸èªã¿è¾¼ã¿æã« \texttt{deluxe} ãæå¹ã§ãªãå ´åã¯ï¼
+ ä¸è¨9ãã¼ã®ãã¡\texttt{mc}, \texttt{gt}ããå®è³ªçã«æå³ãæããªãï¼
+%
+%<*en>
+ Define new preset~. This cannot be same as other presets,
+ options described in Subsubsection~\ref{sssec:ltjpreset-general}, nor
+ following nine strings:
+ \begin{quote}
+ \ttfamily
+ mc mc-l mc-m mc-bx gt gt-m gt-bx gt-eb mg-m
+ \end{quote}
+
+ is a comma-separated list which consists of
+ other presets and/or the following keys:
+ \begin{description}
+ \item[\ttfamily mc-l=] mincho light
+ \item[\ttfamily mc-m=] mincho medium
+ \item[\ttfamily mc-bx=] mincho bold
+ \item[\ttfamily gt-m=] gothic medium
+ \item[\ttfamily gt-bx=] gothic bold
+ \item[\ttfamily gt-eb=] gothic extra~bold
+ \item[\ttfamily mg-m=] rounded gothic
+ \item[\ttfamily mc=] Same as
+ \begin{quote}
+ \ttfamily mc-l=, mc-m=, mc-bx=
+ \end{quote}
+ \item[\ttfamily gt=] Same as
+ \begin{quote}
+ \ttfamily gt-m=, gt-bx=, gt-eb=
+ \end{quote}
+ \end{description}
+ If \texttt{deluxe} is not specified at loading the package,
+ only \texttt{mc}~and~\texttt{gt} keys (among above 9~keys) have a meaning.
+%
+ \item[\cs{ltjnewpreset}*\{\}\{\}]
+%<*ja>
+ \cs{ltjnewpreset}ã¨ã»ã¼åãã§ãããï¼ãã¡ãã¯ãã§ã«å®ç¾©ããã¦ããããªã»ããå
+ ãã«æå®ããå ´åã«ã¯ã¨ã©ã¼ãåºããã«å®ç¾©ãç½®ãæããï¼
+%
+%<*en>
+ Almost same as \cs{ltjnewpreset}. However, if matches a preset which already defined,
+ this command simply overwrite it.
+%
+ \item[\cs{ltjapplypreset}\{\}]
+% ã§æå®ãããããªã»ããã使ã£ã¦åæãã©ã³ããè¨å®ããï¼
+% Set Japanese font families using preset~.
+\end{cslist}
+
+%<*ja>
+ãªãï¼\cs{ltjnewpreset}ã®ç¬¬äºå¼æ°ã«å«ã¾ãã
+ããªã»ããåã¯\cs{ltjnewpreset}ã®æç¹ã§å®ç¾©ããã¦ããå¿
è¦ã¯ãªãï¼
+\cs{ltjapplypreset}ã§å®éã«ä½¿ãã¨ãã«å®ç¾©ããã¦ããã°è¯ãï¼
+ãã®ããï¼æ¬¡ã®ãããªè¨è¿°ãå¯è½ã§ããï¼
+\begin{lstlisting}
+ \ltjnewpreset{hoge}{piyo,mc-bx=HiraMinProN-W6}
+ \ltjnewpreset{piyo}{mg-m=HiraMaruProN-W4}
+ \ltjapplypreset{hoge}
+\end{lstlisting}
+
+\paragraph{注æ}
+\cs{ltjnewpreset}ã§å®ç¾©ããããªã»ããã«ã¯ä»¥ä¸ã®å¶éãããï¼
+\begin{itemize}
+ \item éåãè¾¼ã¿ã®ãã©ã³ããæå®ãããã¨ã¯ã§ããªãï¼
+ \item \texttt{ipa-hg}ãªã©ã®ããã¤ãã®ããªã»ããã§ã¯
+ ã\texttt{90jis}, \texttt{jis2004}ãæå®ããã¦ãããå¦ãã§ãã©ã³ãã®æå®ãå¤ãããå¦çã
+ è¡ããã¦ãããï¼\cs{ltjnewpreset}ã§å®ç¾©ããããªã»ããã§ã¯ãã®å¦çã¯åããªãï¼
+ HGãã©ã³ããã¢ã¬ææãªã©ã使ãããªã»ãããå®ç¾©ããå ´åã«ã¯æ³¨æãããã¨ï¼
+\end{itemize}
+%
+%<*en>
+Note that \cs{ltjnewpreset} does not ``expand'' the definition to define a preset.
+This means that one can write as the following:
+\begin{lstlisting}
+ \ltjnewpreset{hoge}{piyo,mc-bx=HiraMinProN-W6}
+ \ltjnewpreset{piyo}{mg-m=HiraMaruProN-W4}
+ \ltjapplypreset{hoge}
+\end{lstlisting}
+
+\paragraph{Restrictions}
+Presets which are defined by \cs{ltjnewpreset} have following restrictions:
+\begin{itemize}
+ \item One cannot specify non-embedded fonts (such as Ryumin-Light).
+ \item Some presets, such as \texttt{ipa-hg}, have a feature that
+ fonts are changed according to whether \texttt{90jis}~or~\texttt{jis2004} is speified.
+ This feature is not usable in presets which are defined by \cs{ltjnewpreset}.
+\end{itemize}
+%
+
+
\clearpage
%\part{Implementations}
%\part{å®è£
}