Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

加载ctex包会更改矩阵的行列间距 #549

Closed
yuxtech opened this issue Nov 25, 2020 · 4 comments
Closed

加载ctex包会更改矩阵的行列间距 #549

yuxtech opened this issue Nov 25, 2020 · 4 comments

Comments

@yuxtech
Copy link

yuxtech commented Nov 25, 2020

mwe如下

\documentclass{article}
\usepackage{amsmath}
%\usepackage{ctex}
\begin{document}
%\arraycolsep 1cm
\[
  \begin{vmatrix}
    0 & 0 & 0 \\
    0 & 0 & 0 \\
    0 & 0 & 0
  \end{vmatrix}
\]

\end{document}

如果加载ctex包,可以看到矩阵被明显放大了

@sikouhjw
Copy link

texdoc zhlineskip

@yuxtech
Copy link
Author

yuxtech commented Nov 25, 2020

texdoc zhlineskip

Ok,找到了

@yuxtech yuxtech closed this as completed Nov 25, 2020
@muzimuzhi
Copy link
Contributor

  • ctex 宏包(和相关文档类)默认使用 scheme=chinese,此时会全局设置 linespread=1.3,这个多倍行距的设置对公式也生效,所以会有 issue 里提到的问题。
  • zhlineskip 提供了「在公式、脚注等部分恢复默认行距」的功能,所以能帮助解决/避免提到的问题。

@yuxtech
Copy link
Author

yuxtech commented Nov 25, 2020

  • ctex 宏包(和相关文档类)默认使用 scheme=chinese,此时会全局设置 linespread=1.3,这个多倍行距的设置对公式也生效,所以会有 issue 里提到的问题。
  • zhlineskip 提供了「在公式、脚注等部分恢复默认行距」的功能,所以能帮助解决/避免提到的问题。

谢谢,通过zhlineskip文档的说明知道了

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

No branches or pull requests

4 participants