정렬된 환경에 수직 공간을 추가하고 두 수집/정렬 환경 사이의 동일하지 않은 공간에 대한 설명

정렬된 환경에 수직 공간을 추가하고 두 수집/정렬 환경 사이의 동일하지 않은 공간에 대한 설명

aligned더 나은 출력을 얻기 위해 환경 사이에 공간을 두고 환경의 텍스트 아래에 공간을 두고 싶습니다 . 어떻게 해야 합니까?

\documentclass[12pt]{article}
\usepackage[top=0.3in, bottom=1.2in, left=0.8in, right=0.8in]{geometry}

\setlength{\parindent}{0cm}

\usepackage{xltxtra}
\usepackage{xgreek}
\setmainfont[Mapping=tex-text]{GFSDidot.otf}
\setsansfont[Mapping=tex-text]{GFSDidot.otf}

\usepackage[fleqn]{amsmath}
\usepackage{unicode-math}

\everymath{\displaystyle}

\setlength{\mathindent}{0cm}

\allowdisplaybreaks

\newcommand{\CustomGather}[1]
{\begin{gather*}#1\end{gather*}}

\newcommand{\CustomAligned}[1]
{\begin{aligned}#1\end{aligned}}

\newcommand{\CustomAlign}[1]
{\begin{align*}#1\end{align*}}

\newcommand{\3}{\vspace{0.3cm}}

\begin{document}


Άσκηση 4

\3


\CustomGather
{
\CustomAlign
{
&\text{Ερώτημα α.}\\
&\mathcal{E}=-\frac{d}{dt}\int\limits_{S}\vec{B}\cdot \vec{dS}=-\frac{d}{dt}\int\limits_{x-b/2}^{x+b/2}\int\limits_{-b/2}^{b/2}B_{0}(x/a)^{2}\hat{y}\cdot dxdz\hat{y}=-\frac{d}{dt}\left( \frac{B_{0}}{a^{2}}\int\limits_{-b/2}^{b/2}dz\int\limits_{x-b/2}^{x+b/2}x^{2}dx\right)=\\
&=-\frac{d}{dt}\left(\frac{B_{0}b}{a^{2}}\left[\frac{x^{3}}{3}\right]_{x-b/2}^{x+b/2}\right)=\frac{B_{0}b}{a^{2}}\frac{d}{dt}\left[\frac{(x+b/2)^{3}}{3}-\frac{(x-b/2)^{3}}{3}\right]=-\frac{B_{0}b}{a^{2}}\frac{d}{dt}\left[x^{2}b+\frac{b^{3}}{12}\right]=\\
&=-\frac{B_{0}b^{2}2x}{a^{2}}\frac{dx}{dt}=-\frac{2B_{0}b^{2}xu_{0}}{a^{2}}
}\\
\CustomAlign
{
&\text{Ερώτημα β.}\\
&I=\frac{dq}{dt}\Rightarrow dq=Idt\Rightarrow Q=\int\limits_{0}^{t}Idt\\
&dx=u_{0}dt\Rightarrow dt=\frac{dx}{u_{0}}\\
&Q=\int\limits_{0}^{x}\frac{Idx}{u_{0}}=\int\limits_{0}^{x}\frac{\mathcal{E}dx}{Ru_{0}}\Rightarrow Q=\frac{2B_{0}b^{2}x^{2}}{a^{2}R2}=\frac{B_{0}b^{2}x^{2}}{a^{2}R}
}\\
\CustomAlign
{
&\text{Ερώτημα γ.}\\
&dW=\mathcal{E}Idt\Rightarrow W=\int\limits_{0}^{t}\mathcal{E}Idt=\frac{4u_{0}B^{2}_{0}b^{4}x^{3}}{3Ra^{4}}
}
}

\end{document}

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

또한 gather/align텍스트 사이에 텍스트가 있는 환경에서 왜 중간에는 동일한 간격이 없지만 그 위에 더 많은 공간이 있습니까?

\CustomAlign
{&\text{Ερώτημα α.}\\
&\oint\vec{H}\cdot\vec{dl}=NI\Rightarrow H_{z}\cdot\hat{z}\cdot l \hat{z}=nlI \Rightarrow \vec{H}=nI\hat{z}\\
&\vec{B}=\mu_{0}nI\hat{z}=\mu_{0}nI_{0}\sin (\omega t) \hat{z}\\
&\oint\vec{E}\cdot\vec{dl}=-\frac{d}{dt}\int\limits_{S}\vec{B}\cdot \vec{dS}
}
Text
\CustomAlign
{&\text{Ερώτημα α.}\\
&\oint\vec{H}\cdot\vec{dl}=NI\Rightarrow H_{z}\cdot\hat{z}\cdot l \hat{z}=nlI \Rightarrow \vec{H}=nI\hat{z}\\
&\vec{B}=\mu_{0}nI\hat{z}=\mu_{0}nI_{0}\sin (\omega t) \hat{z}\\
&\oint\vec{E}\cdot\vec{dl}=-\frac{d}{dt}\int\limits_{S}\vec{B}\cdot \vec{dS}
}

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

\CustomGather
{
\CustomAligned
{
&E=\vec{u}\times \vec{B}\\
&\vec{u}=\omega \rho \hat{\phi}\\
&\vec{B}=B_{0}\hat{z}\\
&\Rightarrow \vec{E}=B_{0}\omega\rho\hat{\rho} \Rightarrow \vec{J}=\sigma B_{0}\omega\rho\hat{\rho}\\
&d^{3}\vec{F}=\vec{J}\times\vec{B}dV=\vec{J}\times\vec{B}\rho d\rho d\phi dz\\
&d^{3}\vec{T}=\vec{R} \times d^{3}vec{F}= \rho \hat{\rho} \times (\vec{J}\times\vec{B})\rho d\rho d\phi dz\\
&d^{3}\vec{T}=(-\hat{z})B^{2}_{0} \sigma \omega \rho^{3}d\rho d\phi dz\\
}
}

Άσκηση 7

\CustomGather
{
\CustomAligned
{
&\text{Ερώτημα α.}\\
&\oint\vec{H}\cdot\vec{dl}=NI\Rightarrow H_{z}\cdot\hat{z}\cdot l \hat{z}=nlI \Rightarrow \vec{H}=nI\hat{z}\\
&\vec{B}=\mu_{0}nI\hat{z}=\mu_{0}nI_{0}\sin (\omega t) \hat{z}\\
&\oint\vec{E}\cdot\vec{dl}=-\frac{d}{dt}\int\limits_{S}\vec{B}\cdot \vec{dS}
}
}

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

답변1

그게 더 나은가요? 나는 명령으로 제목 (Ερώτιμα α, &c.)을 amsmath로 바꾸고 만들었습니다 . 또한 Gather* 환경에 중첩되어 있으므로 로 대체됩니다. 그런데 제가 아는 한 요즘 로딩은 쓸모가 없습니다.mathtools\shortintertext\CustomAlign\CustomAlignedxltxtra

\documentclass[12pt]{article}
\usepackage[top=0.3in, bottom=1.2in, left=0.8in, right=0.8in]{geometry}

\setlength{\parindent}{0cm}

\usepackage{xltxtra}
\usepackage{xgreek}
\setmainfont[Mapping=tex-text]{GFSDidot.otf}
\setsansfont[Mapping=tex-text]{GFSDidot.otf}

\usepackage[fleqn]{mathtools}
\usepackage{unicode-math}

\everymath{\displaystyle}

\setlength{\mathindent}{0cm}

\allowdisplaybreaks

\newcommand{\CustomGather}[1]
{\begin{gather*}#1\end{gather*}}

\newcommand{\CustomAligned}[1]
{\begin{aligned}#1\end{aligned}}

\newcommand{\CustomAlign}[1]
{\begin{align*}#1\end{align*}}

\newcommand{\3}{\vspace{0.3cm}}

\begin{document}


Άσκηση 4

\3


\CustomGather
{
\CustomAligned
{
\shortintertext{Ερώτημα α.}
\mathcal{E}&=-\frac{d}{dt}\int\limits_{S}\vec{B} · \vec{dS}=-\frac{d}{dt}\int\limits_{x-b/2}^{x+b/2}\int\limits_{-b/2}^{b/2}B_{0}(x/a)^{2}\hat{y} · dxdz\hat{y}=-\frac{d}{dt}\left( \frac{B_{0}}{a^{2}}\int\limits_{-b/2}^{b/2}dz\int\limits_{x-b/2}^{x+b/2}x^{2}dx\right)=\\
&=-\frac{d}{dt}\left(\frac{B_{0}b}{a^{2}}\left[\frac{x^{3}}{3}\right]_{x-b/2}^{x+b/2}\right)=\frac{B_{0}b}{a^{2}}\frac{d}{dt}\left[\frac{(x+b/2)^{3}}{3}-\frac{(x-b/2)^{3}}{3}\right]=-\frac{B_{0}b}{a^{2}}\frac{d}{dt}\left[x^{2}b+\frac{b^{3}}{12}\right]=\\
&=-\frac{B_{0}b^{2}2x}{a^{2}}\frac{dx}{dt}=-\frac{2B_{0}b^{2}xu_{0}}{a^{2}}
}\\[\baselineskip]
\CustomAligned
{
\shortintertext{Ερώτημα β.}
I&=\frac{dq}{dt} ⇒  dq=Idt ⇒  Q=\int\limits_{0}^{t}Idt\\
dx&=u_{0}dt ⇒  dt=\frac{dx}{u_{0}}\\
Q&=\int\limits_{0}^{x}\frac{Idx}{u_{0}}=\int\limits_{0}^{x}\frac{\mathcal{E}dx}{Ru_{0}} ⇒  Q=\frac{2B_{0}b^{2}x^{2}}{a^{2}R2}=\frac{B_{0}b^{2}x^{2}}{a^{2}R}
}\\[\baselineskip]
\CustomAligned
{
\shortintertext{Ερώτημα γ.}
dW&=\mathcal{E}Idt ⇒  W=\int\limits_{0}^{t}\mathcal{E}Idt=\frac{4u_{0}B^{2}_{0}b^{4}x^{3}}{3Ra^{4}}
}
}

\end{document} 

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

관련 정보