つまり,横組クラスで\Pkg{geometry}パッケージを普通に使用した場合にも
当てはまる注意事項である.
-\subsection{\Pkg{fontspec}パッケージとの干渉}
-\Pkg{fontspec}パッケージの,読み込み直後に
-\Pkg{geometry}パッケージを用いてレイアウトを設定すると,
-\texttt{lines}による指定が正しく働かないという症状が生じる:
-\begin{lstlisting}
-\documentclass{article}
-\usepackage{geometry}
-\usepackage{fontspec}
-\geometry{lines=20}
-\begin{document}
-hoge\typeout{\the\topskip, \the\baselineskip, \the\textheight}
-\end{document}
-\end{lstlisting}
-\cs{typeout}で\cs{topskip}, \cs{baselineskip}, \cs{textheight}の値を調べると
-\[
- \frac{\cs{textheight} - \cs{topskip}}{\cs{baselineskip}} = 15.8\dot 3
-\]
-となることがわかるから,1ページには16行分入らないことがわかる.
-
-これは,\Pkg{fontspec}の読み込みによって\cs{baselineskip}がなぜか
-10\,ptに変えられてしまい,\cs{geometry}命令はその値に従って本文領域の高さを計算するためで
-ある.とりあえずの対策は,
-\cs{normalsize}によって\cs{baselineskip}を正しい値に再設定し,その後
-レイアウトを設定すれば良い:
-\begin{lstlisting}
-\usepackage{geometry}
-\usepackage{fontspec}
-\normalsize\geometry{lines=20}
-\end{lstlisting}
+% \subsection{\Pkg{fontspec}パッケージとの干渉}
+% \Pkg{fontspec}パッケージの,読み込み直後に
+% \Pkg{geometry}パッケージを用いてレイアウトを設定すると,
+% \texttt{lines}による指定が正しく働かないという症状が生じる:
+% \begin{lstlisting}
+% \documentclass{article}
+% \usepackage{geometry}
+% \usepackage{fontspec}
+% \geometry{lines=20}
+% \begin{document}
+% hoge\typeout{\the\topskip, \the\baselineskip, \the\textheight}
+% \end{document}
+% \end{lstlisting}
+% \cs{typeout}で\cs{topskip}, \cs{baselineskip}, \cs{textheight}の値を調べると
+% \[
+% \frac{\cs{textheight} - \cs{topskip}}{\cs{baselineskip}} = 15.8\dot 3
+% \]
+% となることがわかるから,1ページには16行分入らないことがわかる.
+
+% これは,\Pkg{fontspec}の読み込みによって\cs{baselineskip}がなぜか
+% 10\,ptに変えられてしまい,\cs{geometry}命令はその値に従って本文領域の高さを計算するためで
+% ある.とりあえずの対策は,
+% \cs{normalsize}によって\cs{baselineskip}を正しい値に再設定し,その後
+% レイアウトを設定すれば良い:
+% \begin{lstlisting}
+% \usepackage{geometry}
+% \usepackage{fontspec}
+% \normalsize\geometry{lines=20}
+% \end{lstlisting}
\subsection{\cs{maxdepth}の調整}
\usepackage{luatexja-otf}
\usepackage[no-math]{fontspec}
\setmainfont[Ligatures=TeX,RawFeature=-notdef]{Linux Libertine O}
-\setmonofont[RawFeature=-notdef, Ligatures=CommonOff, CharacterVariant={31,45,61,36},
+\setmonofont[RawFeature=-notdef, Ligatures=CommonOff, %CharacterVariant={31,45,61,36},
%<en> Scale=0.8132073118633364, FakeStretch=1.183236,
%<ja> Scale=MatchLowercase, FakeStretch=1.137121,
- ItalicFont=iosevka-slab-oblique,
- BoldFont=iosevka-slab-bold, BoldItalicFont=iosevka-slab-bolditalic,
-]{iosevka-slab-regular}
+ Contextuals=AlternateOff,
+ ItalicFont=Iosevka Term Slab Oblique,
+ BoldFont=Iosevka Term Slab Bold, BoldItalicFont=Iosevka Term Slab Bold Oblique,
+]{Iosevka Term Slab}
\setsansfont[Scale=MatchLowercase,Ligatures=TeX,RawFeature=-notdef]{Linux Biolinum O}
\usepackage[match]{luatexja-fontspec}
\usepackage[haranoaji]{luatexja-preset}
Enclosing braces (\verb+{}+) are optional, but this does not escape any characters.
The contents of this list can be accessed by a table \texttt{luatexja.jfont.jfm\_feature}
from a JFM, at its loading. See \autoref{fig:jfmfeat} for an example.
+
+ Note that any JFM files which is shipped with \LuaTeX-ja does not use this feature.
\item[<identifier>]
An optional string.
\end{description}
\item[<JFM name>]
(横組用)JFMの名称.\LuaTeX-jaは\texttt{jfm-<JFM name>.lua}というファイルを探索して読み込む.
\item[<JFM features>]
- 省略可能なコンマ区切りリスト.全体を囲む\verb+{}+は省略可能であるが,
+ 省略可能なコンマ区切りリスト.全体を囲む \verb+{}+ は省略可能であるが,
囲ったからといって<JFM features>の中で使用可能な文字が増えるわけではない.
<JFM features>で指定された内容は,テーブル\texttt{luatexja.jfont.jfm\_feature}として
JFM読み込み時に(JFMから)アクセス可能である.\autoref{fig:jfmfeat}に使用例を載せた.
+
+ なお,\LuaTeX-jaが標準で提供するJFMではこの機能は用いられていない.
\item[<identifier>]
省略可能な文字列.
\end{description}
例えば\autoref{fig:jfmvar}において,最初の「)」と「【」の実フォントは異なるが,
JFMもサイズも同じなので,普通に「)\nobreak【」と入力した時と同じように組まれる,つまり両文字の間は半角空きとなる.
-しかし,JFMとサイズが同じであっても,\texttt{jfmvar} キーの異なる
+しかし,JFMとサイズが同じであっても,\texttt{jfmvar}キーの値<identifier>の異なる
2つの和文フォント,例えば\autoref{fig:jfmvar}で言う \cs{F} と \cs{H},
は「区別される」.異なる和文フォントに異なる \texttt{jfmvar} キーを割り当て,
かつ\Param{differentjfm}パラメータを \texttt{both} に設定すれば,
\begin{figure}
\begin{LTXexample}[pos=t]
\small\ltjsetparameter{differentjfm=both}\tabcolsep=.5\zw
-% \printjfmfeat is defined in the source of this document
+ % \printjfmfeat is defined in the source of this document
\jfont\A=HaranoAjiMincho-Regular:jfm=testf at 9pt \printjfmfeat\A
\jfont\B=HaranoAjiMincho-Bold:jfm=testf/kern=0.5,-ps,+kana at 9pt \printjfmfeat\B
\jfont\C=HaranoAjiGothic-Regular:jfm=testf/kern=0.5,down=0.2 at 9pt \printjfmfeat\C
\begin{tabular}{lllll}
&\string\A&\string\B&\string\C&\string\D\\\TEST\A\\\TEST\B\\\TEST\C\\\TEST\D\\
\end{tabular}
+ % No space between ``漢'' and ``イ'' iff two Japanese fonts uses same JFM
\ltjsetparameter{differentjfm=paverage}
\end{LTXexample}
-\caption{Example of <JFM features>}
+
+\caption{Example of JFM features}
\label{fig:jfmfeat}
\end{figure}
\ltjsetparameter{jacharrange={-3}}
\end{table}
-%<en> The following horizontal JFMs are shipped with \LuaTeX-ja:
+%<en> The following horizontal JFMs are shipped with \LuaTeX-ja.
%<ja> 以下の横組用JFMが\LuaTeX-jaには同梱されている:
\begin{description}
%<*en>
-\item[\texttt{jfm-ujis.lua}] A standard horizontal JFM in \LuaTeX-ja. This JFM is
+\item[\texttt{jfm-ujis.lua}] A standard horizontal JFM of \LuaTeX-ja. This file is
based on \verb+upnmlminr-h.tfm+, a metric for UTF/OTF package that
is used in \upTeX. When you are going to use the \Pkg{luatexja-otf} package, you should use this JFM.
%</en>
%<*ja>
-\item[\texttt{jfm-ujis.lua}] \LuaTeX-jaã\81®æ¨\99æº\96JFMã\81§ã\81\82ã\82\8bï¼\8eこのJFMは\upTeX で
+\item[\texttt{jfm-ujis.lua}] \LuaTeX-jaã\81®æ¨\99æº\96JFMã\83\95ã\82¡ã\82¤ã\83«ã\81§ã\81\82ã\82\8aï¼\8cこのJFMは\upTeX で
用いられるUTF/OTFパッケージ用の和文用TFMである \verb+upnmlminr-h.tfm+ を
元にしている.\Pkg{luatexja-otf}パッケージを使うときはこのJFMを指定するべきである.
%</ja>
-%#!lualatex
-\documentclass{ltjtarticle}
-\usepackage[b5j,margin=40mm]{geometry}
+% %#!ptex2pdf -l test12-ltjtarticle.tex
+\let\ifydir=\iftrue
+\ifdefined\directlua
+ \documentclass{ltjtarticle}
+\else
+ \documentclass{tarticle}
+ \def\zw{zw}
+ \usepackage{lltjp-geometry}
+ \makeatletter
+ \renewcommand\@makefnmark{%
+ \ifydir \hbox{}\hbox{\@textsuperscript{\normalfont\@thefnmark}}\hbox{}%
+ \else\hbox{\yoko\@textsuperscript{\normalfont\@thefnmark}}\fi}
+ \makeatother
+\fi
+\usepackage{sansmathfonts}
+\usepackage[no-math]{fontspec}
+\usepackage[b5j,lines=20, textwidth=30\zw]{geometry}
+\usepackage[kozuka-pr6n]{luatexja-preset}
+\addjfontfeatures{TateFeatures={Opacity=0.5, Color=red, JFM=tmin}}
+\title{ぴよ}
+\author{誰かhoge}
\begin{document}
-\ltjgetparameter{talbaselineshift}
-酵素(こうそ)とは、生体で起こる化学反応に対して触媒として機能する分子である。酵素によって触媒される反応を“酵素的”反応という。
+\maketitle
+{\obeylines\texttt{%
+%baselineshift: \ltjgetparameter{talbaselineshift}
+topskip: \the\topskip
+maxdepth: \the\maxdepth
+textheight: \the\textheight
+baselineskip: \the\baselineskip}\par}
+
+酵素(こうそ)とは、生体で起こる化学反応に対して触媒として能機する分子である。酵素によって触媒される反応を“酵素的”反応という。
酵素は生物が物質を消化する段階から吸収・輸送・代謝・排泄に至るまでのあらゆる過程に関与しており、生体が物質をj変化させて利用するのに欠かせない。したがって、酵素は生化学研究における一大分野であり、早い段階から研究対象になっている。
-多くの酵素は生体内で作り出されるタンパク質を基にして構成されている。したがって、生体内での生成や分布の特性、熱や pH によって変性して活性を失う(失活)といった特性などは、他のタンパク質と同様である。
+多くの酵素は生体内で作り出されるタンパク質を基にして構成されている。したがって、生体内での
+生成や分布の特性、熱や pH によって変性して活性を失う(失活)といった特性などは、他のタンパ
+ク質\marginpar{「あっ!」と驚く}と同様である。
生体を機関に例えると、核酸塩基配列が表すゲノムが設計図に相当するのに対して、生体内における酵素は組立て工具に相当する。酵素の特徴である作用する物質(基質)をえり好みする性質(基質特異性)と目的の反応だけを進行させる性質(反応選択性)などによって、生命維持に必要なさまざまな化学変化を起こさせるのである。
\end{flushright}
\def\R{01234567890123456789}
-\def\S{\R\R\R\R\R\R\R\R\R\R\R\R\R\R\R\R\R\R\R\R\par}
+\def\S{\R\R\R\R\R\R\R\R\R\R\R\R あ\footnote{脚注}\R\R\R\R\R\R\R\R\R\par}
連数字のテスト\rensuji{42}\S\S
\leavevmode \leaders\hbox{2}\hskip2pt
-\end{document}
\ No newline at end of file
+あいうえおabc$-\vcenter{\noindent abc}$あいう$adxvsv\footnote{あいうえおabc}Ha$.
+
+\newpage
+\dtou
+あいうえお\footnote{あいうえおabc}あ
+\end{document}