아직도 고무 길이를 이해하지 못함

아직도 고무 길이를 이해하지 못함
\documentclass[12pt,oneside]{article}
\usepackage{libertine}
\usepackage{amsthm}
\usepackage[libertine]{newtxmath}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{mathtools}
\usepackage{commath}
\usepackage{bm}
\usepackage{xpatch}

\xapptocmd\normalsize{%
 \abovedisplayskip=12pt plus 3pt minus 9pt
 \abovedisplayshortskip=0pt plus 3pt
 \belowdisplayskip=3ex plus 3pt minus 9pt
 \belowdisplayshortskip=5ex plus 3pt minus 4pt
}{}{}

\newtheoremstyle{definitionstyle}  % <name>
        {3ex}                   % <space above>
        {2ex}                   % <space below>
        {\normalfont}           % <body font>
        {}                      % <indent amount}
        {\bfseries}             % <theorem head font>
        {\normalfont\bfseries:} % <punctuation after theorem head>
        {.5em}                  % <space after theorem head>
        {}                      % <theorem head spec (can be left empty, meaning "normal")>
\theoremstyle{definitionstyle}

\newtheorem{definition}{Definition}[section] % Comment out [section] to remove section number dependence

\begin{document}

\begin{definition}
\textit{Displacement} is a vector measure (it has both magnitude and direction) of the interval between two locations measured along the shortest path connecting them.
\textit{Distance,} or distance traveled, is a scalar measure (an absolute value) of the interval between two locations measured along the actual path connecting them.
\end{definition}

\begin{definition}
\textit{Instant velocity,} or velocity, of an object is the rate of change of its displacement \textit{with respect to} time:
\end{definition}
\begin{equation}
\bm{v} = \lim_{\Delta t \to 0} \frac{\bm{r}(t+\Delta t) - \bm{r}(t)}{\Delta t}=\lim_{\Delta t \to 0}\frac{\Delta \bm{r}}{\Delta t}=\frac{\dif\bm{r}}{\dif t}=\dot{\bm{r}}
\end{equation}

\textit{Instant speed,} or speed, is the rate of change of distance with respect to time:
\[\envert{\bm{v}} = v = \lim_{\Delta t \to 0} \frac{\Delta s}{\Delta t} = \frac{\dif s}{\dif t} = \dot{s}\]

\begin{definition}
\textit{Instant acceleration,} or acceleration, is the rate of change of velocity with respect to time:
\end{definition}

\end{document}

비슷한 질문에도 불구하고 저는 이러한 간격이 전체적으로 어떻게 작동하는지(결합 시) 여전히 완전히 이해하지 못합니다. 위의 코드는 다음을 생성합니다. 여기에 이미지 설명을 입력하세요

의 간격 값 definitionstyle과 수학 관련 간격( abovedisplayskip등)과 관련하여 LaTeX 엔진은 정확히 어떻게 계산합니까? 예를 들어, 이미지의 모든 수직 간격(색상 상자)을 동일하게 하려면 원하는 효과를 얻기 위해 어떻게 계산해야 합니까?

답변1

페이지가 늘어나거나 줄어들지 않으므로 고무 길이는 이와 관련이 없습니다.

환경이 속해 있는 equation내부에 환경 을 배치해 보겠습니다 .definition

\documentclass[12pt,oneside]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

\usepackage{amsthm}
\usepackage{mathtools}
\usepackage{commath} % don't use it, it's full of bugs
\usepackage{bm}
\usepackage{xpatch}

\usepackage{libertine}
\usepackage[libertine]{newtxmath}

\xapptocmd\normalsize{%
 \abovedisplayskip=12pt plus 3pt minus 9pt
 \abovedisplayshortskip=0pt plus 3pt
 \belowdisplayskip=3ex plus 3pt minus 9pt
 \belowdisplayshortskip=5ex plus 3pt minus 4pt
}{}{}

\newtheoremstyle{definitionstyle}  % <name>
        {3ex}                   % <space above>
        {2ex}                   % <space below>
        {\normalfont}           % <body font>
        {}                      % <indent amount}
        {\bfseries}             % <theorem head font>
        {\normalfont\bfseries:} % <punctuation after theorem head>
        {.5em}                  % <space after theorem head>
        {}                      % <theorem head spec (can be left empty, meaning "normal")>
\theoremstyle{definitionstyle}

\newtheorem{definition}{Definition}[section] % Comment out [section] to remove section number dependence

\begin{document}

\begin{definition}
\textit{Displacement} is a vector measure (it has both magnitude and direction) of the interval between two locations measured along the shortest path connecting them.
\textit{Distance,} or distance traveled, is a scalar measure (an absolute value) of the interval between two locations measured along the actual path connecting them.
\end{definition}

\begin{definition}
\textit{Instant velocity,} or velocity, of an object is the rate of change of its displacement \textit{with respect to} time:
\begin{equation}
\bm{v} = \lim_{\Delta t \to 0} \frac{\bm{r}(t+\Delta t) - \bm{r}(t)}{\Delta t}=\lim_{\Delta t \to 0}\frac{\Delta \bm{r}}{\Delta t}=\frac{\dif\bm{r}}{\dif t}=\dot{\bm{r}}
\end{equation}
\end{definition}

\textit{Instant speed,} or speed, is the rate of change of distance with respect to time:
\[\envert{\bm{v}} = v = \lim_{\Delta t \to 0} \frac{\Delta s}{\Delta t} = \frac{\dif s}{\dif t} = \dot{s}\]

\begin{definition}
\textit{Instant acceleration,} or acceleration, is the rate of change of velocity with respect to time:
\end{definition}

\end{document}

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

아래와 같이 설정한 다양한 간격도 변경하면

\documentclass[12pt,oneside]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

\usepackage{amsthm}
\usepackage{mathtools}
\usepackage{bm}
\usepackage{xpatch}

\usepackage{libertine}
\usepackage[libertine]{newtxmath}

\xapptocmd\normalsize{%
 \abovedisplayskip=12pt plus 3pt minus 9pt
 \abovedisplayshortskip=0pt plus 3pt
 \belowdisplayskip=12pt plus 3pt minus 9pt
 \belowdisplayshortskip=12pt plus 3pt minus 4pt
}{}{}

\newcommand{\dif}{\mathop{}\!\mathrm{d}}

\newtheoremstyle{definitionstyle}  % <name>
        {12pt}                  % <space above>
        {12pt}                  % <space below>
        {\normalfont}           % <body font>
        {}                      % <indent amount}
        {\bfseries}             % <theorem head font>
        {\normalfont\bfseries:} % <punctuation after theorem head>
        {.5em}                  % <space after theorem head>
        {}                      % <theorem head spec (can be left empty, meaning "normal")>
\theoremstyle{definitionstyle}

\newtheorem{definition}{Definition}[section] % Comment out [section] to remove section number dependence

\begin{document}

\begin{definition}
\textit{Displacement} is a vector measure (it has both magnitude and direction) 
of the interval between two locations measured along the shortest path connecting them.
\textit{Distance,} or distance traveled, is a scalar measure (an absolute value) 
of the interval between two locations measured along the actual path connecting them.
\end{definition}

\begin{definition}
\textit{Instant velocity,} or velocity, of an object is the rate of change of its 
displacement \textit{with respect to} time:
\begin{equation}
\bm{v} = \lim_{\Delta t \to 0} \frac{\bm{r}(t+\Delta t) - 
\bm{r}(t)}{\Delta t}=\lim_{\Delta t \to 0}\frac{\Delta \bm{r}}{\Delta t}=
\frac{\dif\bm{r}}{\dif t}=\dot{\bm{r}}
\end{equation}
\end{definition}

\textit{Instant speed,} or speed, is the rate of change of distance with respect to time:
\[
\lvert\bm{v}\rvert = v = \lim_{\Delta t \to 0} \frac{\Delta s}{\Delta t} = 
\frac{\dif s}{\dif t} = \dot{s}
\]

\begin{definition}
\textit{Instant acceleration,} or acceleration, is the rate of change of velocity 
with respect to time:
\end{definition}

\end{document}

나는 얻다

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

관련 정보