Skip to content

Commit

Permalink
fix: math environment indents
Browse files Browse the repository at this point in the history
  • Loading branch information
Qurcaivel committed Sep 29, 2024
1 parent c6ab54d commit bf979b9
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions preamble.tex
Original file line number Diff line number Diff line change
Expand Up @@ -953,7 +953,10 @@
\newlength{\eqindent}
\setlength{\eqindent}{1.4em} % Recommended: baselineskip, 1.3em, 1.4em, 1.5em

\AtBeginEnvironment{equation}{\setlength\abovedisplayskip{\eqindent - \baselineskip}}
\AtBeginEnvironment{equation}{\setlength\belowdisplayskip{\eqindent}}
\AtBeginEnvironment{equation}{\setlength\abovedisplayshortskip{\eqindent - \baselineskip}}
\AtBeginEnvironment{equation}{\setlength\belowdisplayshortskip{\eqindent}}
% Note: if necessary, supplement the list with the necessary math environment
\foreach \env in {equation, equation*, align, align*}{
\AtBeginEnvironment{\env}{\setlength\abovedisplayskip{\eqindent - \baselineskip}}
\AtBeginEnvironment{\env}{\setlength\belowdisplayskip{\eqindent}}
\AtBeginEnvironment{\env}{\setlength\abovedisplayshortskip{\eqindent - \baselineskip}}
\AtBeginEnvironment{\env}{\setlength\belowdisplayshortskip{\eqindent}}
}

0 comments on commit bf979b9

Please sign in to comment.