Skip to content

Instantly share code, notes, and snippets.

@hyuki
Created June 2, 2018 04:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hyuki/c72224540166557eca1b26db1daab42d to your computer and use it in GitHub Desktop.
Save hyuki/c72224540166557eca1b26db1daab42d to your computer and use it in GitHub Desktop.
jsbookとbookのpmatrix環境の違い(TeXLive 2015)
\documentclass{book}
\usepackage{amsmath}
\begin{document}
\def\MATRIX{\begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}}
\centering$\displaystyle\MATRIX$
$$\MATRIX$$
\end{document}
\documentclass{jsbook}
\usepackage{amsmath}
\begin{document}
\def\MATRIX{\begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}}
\centering$\displaystyle\MATRIX$
$$\MATRIX$$
\end{document}
@hyuki
Copy link
Author

hyuki commented Jun 2, 2018

bookを使った場合

book

jsbookを使った場合

jsbook

jsbookを使うと$\displaystyle ... $が$$ ... $$と異なるように見えます。

@hyuki
Copy link
Author

hyuki commented Jun 2, 2018

関連情報のためのリンク。
https://twitter.com/hyuki/status/1002763729585369088

@hyuki
Copy link
Author

hyuki commented Jun 2, 2018

解決したソース

\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}

20180602153521

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment