From: Hironori Kitagawa Date: Fri, 28 Aug 2015 05:05:35 +0000 (+0900) Subject: small fix X-Git-Tag: 20150906.0~8 X-Git-Url: http://git.osdn.jp/view?a=commitdiff_plain;h=5bf470f139df9dae6f51f0f710ac6b2aeb331e8e;p=luatex-ja%2Fluatexja.git small fix --- diff --git a/doc/luatexja.dtx b/doc/luatexja.dtx index 953019e..d062b9b 100644 --- a/doc/luatexja.dtx +++ b/doc/luatexja.dtx @@ -158,7 +158,8 @@ \vskip\belowcaptionskip} \def\_{\leavevmode \kern .06em\vbox {\hrule \@width .333em}} -\def\cs#1{\texttt{\upshape\textbackslash\ltjsetparameter{autoxspacing=false}#1}} +\def\cs#1{\texttt{\upshape\textbackslash + \texorpdfstring{\ltjsetparameter{autoxspacing=false}#1}{#1}}} %%%%%%%% \makeatother @@ -5612,7 +5613,7 @@ With the help of this example, we remark the specification of \cs{inhibitglue}: Using \cs{ltjdeclarealtfont}, one can ``compose'' more than one Japanese fonts. This \cs{ltjdeclarealtfont} uses in the following form: \begin{quote} -\ttfamily \textbackslash ltjdeclarealtfont{} +\ttfamily \textbackslash ltjdeclarealtfont\{\} \end{quote} where ~and~ are defined by \cs{jfont}. Its meaning is @@ -5620,8 +5621,7 @@ Its meaning is If the current Japanese font is , characters which belong to is typeset by another Japanese font , instead of . \end{quote} - - is a comma-separated list of character codes, but also accepts negative integers: +Here is a comma-separated list of character codes, but also accepts negative integers: $-n$~($n≥1$) means that all characters of character classes~$n$, with respect to JFM used by . Note that characters which do not exist in are ignored. @@ -5645,7 +5645,7 @@ are typeset by \cs{piyo}. \cs{ltjdeclarealtfont} は以下の書式で使用する: \begin{quote} -\ttfamily \textbackslash ltjdeclarealtfont{} +\ttfamily \textbackslash ltjdeclarealtfont\{\} \end{quote} これは「現在の和文フォント」がであるとき, に属する文字はを用いて組版される,という意味である. @@ -6097,10 +6097,7 @@ loaded. %\paragraph{Remarks} %\paragraph{注意} -\begin{itemize} - %<*en> -\item Of course, there is a case that is not recognized as a Japanese font family, nor an alphabetic font family. In this case, \LuaTeX-ja treats ``the argument is wrong'', so @@ -6108,21 +6105,12 @@ set both current alphabetic and Japanese font family to , to use the default family for font substitution. % %<*ja> -\item さて,引数によっては,「和文フォントファミリとも欧文フォントファミリも認識されなかった」 という事態もあり得る. この場合,引数は不正だった,ということになるので, 和文・欧文の両方のフォントファミリをに設定し,代用フォントが使われるに任せることにする. % -%<*en> -\item -% -%<*ja> -\item -% -\end{itemize} - %<*en> \section{Addons} diff --git a/src/patches/lltjfont.sty b/src/patches/lltjfont.sty index fa6b362..4855f50 100644 --- a/src/patches/lltjfont.sty +++ b/src/patches/lltjfont.sty @@ -3,7 +3,7 @@ % \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{lltjfont}[2015/08/27 Patch to NFSS2 for LuaTeX-ja] +\ProvidesPackage{lltjfont}[2015/08/28 Patch to NFSS2 for LuaTeX-ja] \let\k@encoding\@empty \let\ck@encoding\@empty @@ -484,10 +484,7 @@ \fi % \if@notkfam\if@notffam - {\ifcsname D@\k@encoding\endcsname\@nameuse{D@\k@encoding}\fi - \xdef\@@temp{\default@family}}\edef\k@family{\@@temp}% - {\ifcsname D@\f@encoding\endcsname\@nameuse{D@\f@encoding}\fi - \xdef\@@temp{\default@family}}\edef\f@family{\@@temp}% + \edef\k@family{#1}\edef\f@family{#1}% \fi\fi } \DeclareRobustCommand\romanseries[1]{\edef\f@series{#1}}