라틴 모던과 컴퓨터 모던의 괄호 크기가 일관되지 않습니다.

라틴 모던과 컴퓨터 모던의 괄호 크기가 일관되지 않습니다.

Computer Modern에서 Latin Modern으로 전환하면 구분 기호의 크기가 변경되는 것을 확인했습니다. 12pt 글꼴 크기 문서에서는 인라인 수학이 \bigl(너무 커서 맞지 않고 해당 줄이 차지하는 수직 공간이 확장됩니다. 이것은 Computer Modern의 문제가 아니었습니다. 이것은 버그인가요?

\documentclass[12pt]{article}

\usepackage{lmodern}
\usepackage{amsmath}

\begin{document}
An equivalence class~$[a]_{\sim} \in A / {\sim}$ consists of all the elements
in $A$ that are mapped to $b = f(a)$. By the axiom of choice, there exists a
choice function~$c \colon A / {\sim} \to A$ which selects a representative
element of each equivalence class. There exists a
function~$h \colon B \to A / {\sim}$, so that
$h(b) = h\bigl(f(a)\bigr) = [a]_{\sim}$. This allows us to construct the
function~$g = c \circ h$, which is in fact a right-inverse of $f$.
\[
    \Biggl(\biggl(\Bigl(\bigl((X)\bigr)\Bigr)\biggr)\Biggr)
\]
\end{document}

컴퓨터 현대: 컴퓨터 현대

라틴 현대: 라틴 모던

라틴 모던의 경우에는 네 번째 줄 위에 간격이 있지만 Computer Modern의 경우에는 없습니다.


편집하다:

이 게시물by egreg는 동일한 문제를 해결합니다.

답변1

역사적 이유로 확장 가능한 구분 기호에 고정 크기가 사용됩니다. 심지어 cm의 경우에도 분명히 좋은 생각은 아니지만( exscale패키지 참조) 여기서는 글꼴을 자연스러운 크기로 사용하면 전혀 좋지 않습니다....

여기에 이미지 설명을 입력하세요

\documentclass[12pt]{article}

\DeclareFontFamily{OMX}{lmex}{}
\DeclareFontShape{OMX}{lmex}{m}{n}{%
   <->lmex10%
   }{}
\usepackage{lmodern}
\usepackage{amsmath}

\begin{document}



\show\big
\showthe\baselineskip
\setbox0\hbox{$\big($}\showthe\dimexpr\ht0+\dp0
\showoutput
\showbox0

An equivalence class~$[a]_{\sim} \in A / {\sim}$ consists of all the elements
in $A$ that are mapped to $b = f(a)$. By the axiom of choice, there exists a
choice function~$c \colon A / {\sim} \to A$ which selects a representative
element of each equivalence class. There exists a
function~$h \colon B \to A / {\sim}$, so that
$h(b) = h\bigl(f(a)\bigr) = [a]_{\sim}$. This allows us to construct the
function~$g = c \circ h$, which is in fact a right-inverse of $f$.
\[
    \Biggl(\biggl(\Bigl(\bigl((X)\bigr)\Bigr)\biggr)\Biggr)
\]
\end{document}

이제 크기가 다음과 같이 표시됩니다.

> 14.5pt.
l.17 \showthe\baselineskip

? 

> 14.40013pt.

\big미만 으로\baselineskip


\big크기를 유지하면서 크기를 다시 정의할 수 있으므로 단락 내에서 접착제가 사용되는 것을 \baselineskip방지할 수 있습니다 .\lineskip

\documentclass[12pt]{article}

\usepackage{lmodern}
\usepackage{amsmath}

\begin{document}


\makeatletter
\renewcommand{\big}{\bBigg@{0.92}}
\makeatother
\show\big
\showthe\baselineskip
\setbox0\hbox{$\big($}\showthe\dimexpr\ht0+\dp0
\showoutput

An equivalence class~$[a]_{\sim} \in A / {\sim}$ consists of all the elements
in $A$ that are mapped to $b = f(a)$. By the axiom of choice, there exists a
choice function~$c \colon A / {\sim} \to A$ which selects a representative
element of each equivalence class. There exists a
function~$h \colon B \to A / {\sim}$, so that
$h(b) = h\bigl(f(a)\bigr) = [a]_{\sim}$. This allows us to construct the
function~$g = c \circ h$, which is in fact a right-inverse of $f$.
\[
    \Biggl(\biggl(\Bigl(\bigl((X)\bigr)\Bigr)\biggr)\Biggr)
\]
\end{document}

\show문서 상단에 표시됩니다 .

> 14.5pt.
l.13 \showthe\baselineskip

? 

> 13.24792pt.
<to be read again> 

\big(이는 14.5pt 기준 kip보다 작음 을 보여줍니다 .

경험적으로 선택된 .92: .93은 글꼴을 다음 사용 가능한 크기로 점프하게 하는데, 여기서는 너무 큽니다.

답변2

글꼴을 강제로 사용하면 문제를 해결할 수 있습니다 cmex. exscale의 유사한 설정을 사용하겠습니다 amsfonts.

\documentclass[12pt]{article}

\usepackage{lmodern}
\usepackage{amsmath}


\DeclareFontFamily{OMX}{lmex}{}
\DeclareFontShape{OMX}{lmex}{m}{n}{%
       <-7.5>cmex7%
    <7.5-8.5>cmex8%
    <8.5-9.5>cmex9%
    <9.5->cmex10%
}{}%

\begin{document}

% \showoutput

An equivalence class~$[a]_{\sim} \in A / {\sim}$ consists of all the elements
in $A$ that are mapped to $b = f(a)$. By the axiom of choice, there exists a
choice function~$c \colon A / {\sim} \to A$ which selects a representative
element of each equivalence class. There exists a
function~$h \colon B \to A / {\sim}$, so that
$h(b) = h\bigl({f}(a)\bigr) = [a]_{\sim}$. This allows us to construct the
function~$g = c \circ h$, which is in fact a right-inverse of $f$.
\[
    \Biggl(\biggl(\Bigl(\bigl((X)\bigr)\Bigr)\biggr)\Biggr)
\]
\end{document}

여기에 이미지 설명을 입력하세요

관련 정보