Created
June 2, 2018 04:03
-
-
Save hyuki/c72224540166557eca1b26db1daab42d to your computer and use it in GitHub Desktop.
jsbookとbookのpmatrix環境の違い(TeXLive 2015)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass{book} | |
\usepackage{amsmath} | |
\begin{document} | |
\def\MATRIX{\begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}} | |
\centering$\displaystyle\MATRIX$ | |
$$\MATRIX$$ | |
\end{document} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass{jsbook} | |
\usepackage{amsmath} | |
\begin{document} | |
\def\MATRIX{\begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}} | |
\centering$\displaystyle\MATRIX$ | |
$$\MATRIX$$ | |
\end{document} |
関連情報のためのリンク。
https://twitter.com/hyuki/status/1002763729585369088
解決したソース
\documentclass{jsbook}
\usepackage{amsmath}
\begin{document}
\def\FIXEDMATRIX{\narrowbaselines\begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}}
\def\MATRIX{\begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}}
\verb|\narrowbaselinesなし|
\begin{center}$\displaystyle\MATRIX$\end{center}
\verb|\narrowbaselinesあり|
\begin{center}$\displaystyle\FIXEDMATRIX$\end{center}
\verb|比較用|
$$\MATRIX$$
\end{document}
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
book
を使った場合jsbook
を使った場合jsbookを使うと$\displaystyle ...$が$ $ ... $$と異なるように見えます。