diff options
author | Karl Berry <karl@freefriends.org> | 2020-09-19 20:58:37 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-09-19 20:58:37 +0000 |
commit | d29e710bd3e04a6a582ee01db8244868a2159e0d (patch) | |
tree | c0b4a1fb3a85b9c875639794624f5ecf19bc8c2f /Master/texmf-dist/doc/luatex/luatexja/lltjp-geometry.tex | |
parent | d35bc7427c810ecdce6b3d17b964a0c11a6de3ed (diff) |
luatexja (18sep20)
git-svn-id: svn://tug.org/texlive/trunk@56381 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/luatex/luatexja/lltjp-geometry.tex')
-rw-r--r-- | Master/texmf-dist/doc/luatex/luatexja/lltjp-geometry.tex | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/Master/texmf-dist/doc/luatex/luatexja/lltjp-geometry.tex b/Master/texmf-dist/doc/luatex/luatexja/lltjp-geometry.tex index 28be8dad3cc..b8d49633056 100644 --- a/Master/texmf-dist/doc/luatex/luatexja/lltjp-geometry.tex +++ b/Master/texmf-dist/doc/luatex/luatexja/lltjp-geometry.tex @@ -136,35 +136,35 @@ つまり,横組クラスで\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}の調整} |