From: Hironori Kitagawa Date: Sat, 23 Nov 2019 11:45:41 +0000 (+0900) Subject: documents X-Git-Tag: 20200127.0~14 X-Git-Url: http://git.osdn.net/view?p=luatex-ja%2Fluatexja.git;a=commitdiff_plain;h=09b33791e768d8c9b6d508244da78558cdf68fc8 documents --- diff --git a/doc/lltjp-geometry.tex b/doc/lltjp-geometry.tex index 2006e49..1b2aa5e 100644 --- a/doc/lltjp-geometry.tex +++ b/doc/lltjp-geometry.tex @@ -1,17 +1,17 @@ -%#! luajitlatex +%#! lualatex \documentclass[a4paper,10pt]{ltjsarticle} \usepackage[textwidth=45\zw, lines=45, footskip=2\zh, verbose]{geometry} -\usepackage{listings,amsmath,booktabs,lltjext} -\usepackage[match]{luatexja-fontspec} +\usepackage{listings,amsmath,booktabs,lltjext,bxghost} \usepackage{unicode-math} -\setmathfont{XITS Math} -\setmainfont{TeX Gyre Termes} -\setsansfont[Scale=0.95]{TeX Gyre Heros} -\usepackage[kozuka-pr6n]{luatexja-preset}\normalsize +\setmathfont{Latin Modern Math} +\usepackage[match]{luatexja-fontspec} +\usepackage[haranoaji]{luatexja-preset} +\setmonojfont{HaranoAjiGothic-Regular} +\normalsize \def\emph#1{\textbf{\textgt{\mathversion{bold}#1}}} \def\headfont{\normalfont\bfseries\gtfamily} \def\pTeX{p\kern-.05em\TeX} -\def\cs#1{\text{\texttt{\char`\\#1}}} +\def\cs#1{\text{\eghostguarded{\texttt{\char`\\#1}}}} \protected\def\Pkg#1{\textsf{#1}} \protected\def\>{\hskip\ltjgetparameter{xkanjiskip}} \lstset{ @@ -244,7 +244,7 @@ $5\,\textrm{pt} + 3.41666\,\textrm{pt}=8.41666\,\textrm{pt}$である.} \Pkg{lltjp-geometry}では \begin{quote} \texttt{lines}オプション指定時,\cs{topskip}の値を最低でも - \emph{\cs{tstrutbox}の高さ($\cs{baselineskip}/2$)}まで引き上げる + \emph{\cs{tstrutbox}の高さ}($\cs{baselineskip}/2$)まで引き上げる \end{quote} という挙動にした.見かけ上は\cs{topskip}の値制限が緩くなったが,前節で述べたように 欧文フォントのベースラインは和文に合うように下にずらされるので, @@ -278,8 +278,8 @@ $5\,\textrm{pt} + 3.41666\,\textrm{pt}=8.41666\,\textrm{pt}$である.} \cs{topskip}だけ左にずれたところにあり, 一方ページの最終行のベースラインは本文領域の左端にある. 縦組和文フォントのベースラインは文字の左右中央を通ることから, -従って,\emph{見た目で言えば,右余白の方が$\cs{topskip}=8.5\,\textrm{pt}$だけ -大きい}ということになってしまう\footnote{% +従って,\emph{見た目で言えば,右余白の方が\cs{topskip}}~($=8.5\,\textrm{pt}$)% +\emph{だけ大きい}ということになってしまう\footnote{% 同様に,横組で \texttt{vcentering}を指定すると,見かけでは $\cs{topskip}-\cs{Cht}+\cs{Cdp}$だけ上余白が大きいように見える. }. diff --git a/doc/luatexja-ruby.tex b/doc/luatexja-ruby.tex index 4d4be4f..40657a3 100644 --- a/doc/luatexja-ruby.tex +++ b/doc/luatexja-ruby.tex @@ -1,16 +1,20 @@ -%#! luajitlatex +%#! lualatex %%% a test of ruby. \documentclass[a4paper,10pt]{ltjsarticle} -\usepackage{luatexja-otf,amsmath} +\usepackage{luatexja-otf,amsmath,bxghost} +\usepackage[no-math]{fontspec} \usepackage[match]{luatexja-fontspec} -\usepackage[kozuka-pr6n]{luatexja-preset}\normalsize +\usepackage[haranoaji]{luatexja-preset}\normalsize +\setmonojfont{HaranoAjiGothic-Regular.otf} +\usepackage{unicode-math} +\setmathfont{Latin Modern Math} + \def\emph#1{\textbf{\textgt{#1}}} \def\headfont{\normalfont\bfseries\gtfamily} -\setmonojfont{KozGoPr6N-Regular.otf} - -\usepackage[textwidth=45\zw, lines=45, footskip=6mm]{geometry} +\def\cs#1{\eghostguarded{\texttt{\textbackslash#1}}} +\usepackage[textwidth=45\zw, lines=45, footskip=2\zh]{geometry} \advance\leftmargini-1\zw\advance\leftmarginii-1\zw -\protected\def\Param#1{\underline{\smash{\textsf{\mdseries #1}}}} +\protected\def\Param#1{\eghostguarded{\underline{\smash{\textsf{\mdseries #1}}}}} \usepackage{luatexja-ruby,showexpl,booktabs} \lstset{ @@ -30,17 +34,17 @@ } \def\Node#1#2{\,\vcenter{\hbox{\fboxsep=1pt\fbox{\vbox{\small\halign{\hfil##\hfil\cr - #1\mathstrut\cr\noalign{\hrule height.4pt}\strut#2\cr}}}}\,}} + #1\mathstrut\cr\noalign{\smallskip\hrule height.4pt\smallskip}\strut\<#2\cr}}}}}\,} \def\LuaTeX{Lua\TeX} % 三分ルビ用 \DeclareFontShape{JY3}{mc}{mc}{n}{<-> [0.92487] - KozMinPr6N-Regular:extend=0.67;jfm=ujisc33}{} + HaranoAjiMincho-Regular:extend=0.67;jfm=ujisc33}{} \title{\textsf{luatexja-ruby}パッケージ} \begin{document} \catcode`\<=13 -\def<#1>{{\normalfont\rm\itshape$\langle$#1\/$\rangle$}} +\def<#1>{{\rmfamily\mdseries\itshape$\langle$#1\/$\rangle$}} %\fontsize{13.19873}{15}\selectfont% \maketitle @@ -76,17 +80,17 @@ plain \LuaTeX でのロードはまだサポートしておらず, \end{quotation} \subsection{\ruby{命|令}{めい|れい}} -\paragraph{\tt\textbackslash ltjruby} +\paragraph{\cs{ltjruby}} ルビ出力用命令の本体.\verb+\ruby+ という別名を定義している. \begin{quote} -\tt \textbackslash ltjruby[