Implementiere Formeleinrückung um 1cm vom Rand
This commit is contained in:
parent
51facb214b
commit
b173449c84
@ -35,8 +35,7 @@
|
|||||||
% Equation Formatting Configuration
|
% Equation Formatting Configuration
|
||||||
% ==============================================================================
|
% ==============================================================================
|
||||||
% Set equation indentation to 1cm from margin
|
% Set equation indentation to 1cm from margin
|
||||||
% Note: Equation indentation requires document class configuration
|
% We redefine the equation environment to add left margin
|
||||||
% This will be handled via custom equation environments if needed
|
|
||||||
|
|
||||||
% Configure vertical spacing around equations
|
% Configure vertical spacing around equations
|
||||||
% Two lines spacing before and after equations as per requirements
|
% Two lines spacing before and after equations as per requirements
|
||||||
@ -45,6 +44,59 @@
|
|||||||
\setlength{\abovedisplayshortskip}{12pt plus 3pt minus 3pt}
|
\setlength{\abovedisplayshortskip}{12pt plus 3pt minus 3pt}
|
||||||
\setlength{\belowdisplayshortskip}{12pt plus 3pt minus 3pt}
|
\setlength{\belowdisplayshortskip}{12pt plus 3pt minus 3pt}
|
||||||
|
|
||||||
|
% Save original equation environments
|
||||||
|
\let\originalequation\equation
|
||||||
|
\let\endoriginalequation\endequation
|
||||||
|
\let\originalequationstar\[
|
||||||
|
\let\endoriginalequationstar\]
|
||||||
|
|
||||||
|
% Redefine equation environment with 1cm left indent
|
||||||
|
\renewenvironment{equation}{%
|
||||||
|
\vspace{\abovedisplayskip}%
|
||||||
|
\noindent\hspace{1cm}\begin{minipage}{\dimexpr\textwidth-1cm\relax}%
|
||||||
|
\originalequation%
|
||||||
|
}{%
|
||||||
|
\endoriginalequation%
|
||||||
|
\end{minipage}%
|
||||||
|
\vspace{\belowdisplayskip}%
|
||||||
|
}
|
||||||
|
|
||||||
|
% Redefine displaymath with 1cm left indent
|
||||||
|
\renewenvironment{displaymath}{%
|
||||||
|
\vspace{\abovedisplayskip}%
|
||||||
|
\noindent\hspace{1cm}\begin{minipage}{\dimexpr\textwidth-1cm\relax}%
|
||||||
|
\[%
|
||||||
|
}{%
|
||||||
|
\]%
|
||||||
|
\end{minipage}%
|
||||||
|
\vspace{\belowdisplayskip}%
|
||||||
|
}
|
||||||
|
|
||||||
|
% ==============================================================================
|
||||||
|
% Alternative Indented Equation Environments
|
||||||
|
% ==============================================================================
|
||||||
|
% These can be used when you don't want global indentation
|
||||||
|
\newenvironment{indentedequation}{%
|
||||||
|
\vspace{\abovedisplayskip}%
|
||||||
|
\noindent\hspace{1cm}\begin{minipage}{\dimexpr\textwidth-1cm\relax}%
|
||||||
|
\originalequation%
|
||||||
|
}{%
|
||||||
|
\endoriginalequation%
|
||||||
|
\end{minipage}%
|
||||||
|
\vspace{\belowdisplayskip}%
|
||||||
|
}
|
||||||
|
|
||||||
|
% Define unnumbered version
|
||||||
|
\newenvironment{indentedequation*}{%
|
||||||
|
\vspace{\abovedisplayskip}%
|
||||||
|
\noindent\hspace{1cm}\begin{minipage}{\dimexpr\textwidth-1cm\relax}%
|
||||||
|
\[%
|
||||||
|
}{%
|
||||||
|
\]%
|
||||||
|
\end{minipage}%
|
||||||
|
\vspace{\belowdisplayskip}%
|
||||||
|
}
|
||||||
|
|
||||||
% ==============================================================================
|
% ==============================================================================
|
||||||
% End of Equations Configuration Module
|
% End of Equations Configuration Module
|
||||||
% ==============================================================================
|
% ==============================================================================
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user