Hello i am using a line of code to draw 2 equations next to eachother using \minipage{}
:
\begin{minipage}{0.5\textwidth}
\small
\begin{equation}\label{e3}
\begin{split}
\frac{\mathrm d x'}{\mathrm d t} &= \frac{\mathrm d x}{\mathrm d t} - \frac{\mathrm d} {\mathrm d t}(ut)\\
\frac{\mathrm d x'}{\mathrm d t} &= \frac{\mathrm d x}{\mathrm d t} - u \, \frac{\mathrm d}{\mathrm d t}(t)\\
\frac{\mathrm d x'}{\mathrm d t} &= \frac{\mathrm d x}{\mathrm d t} - u \, \frac{\mathrm d t}{\mathrm d t}\\
v' &= v - u
\end{split}
\end{equation}
\end{minipage}
\begin{minipage}{0.5\textwidth}
\small
\begin{equation}\label{e4}
\begin{split}
\frac{\mathrm d x}{\mathrm d t} &= \frac{\mathrm d x'}{\mathrm d t} + \frac{\mathrm d}{\mathrm d t}(ut)\\
\frac{\mathrm d x}{\mathrm d t} &= \frac{\mathrm d x'}{\mathrm d t} + u \, \frac{\mathrm d}{\mathrm d t}(t)\\
\frac{\mathrm d x}{\mathrm d t} &= \frac{\mathrm d x'}{\mathrm d t} + u \, \frac{\mathrm d t}{\mathrm d t}\\
v &= v' + u
\end{split}
\end{equation}
\end{minipage}
After compiling, using PDFLaTeX i get a resulting document which looks like this:
What can i do to increase vertical spacing after minipage, which is very small? I would also like to know, how can i take care of an annoying \small
comand which i have to put inside every \minipage{}
for my equations to look smaller? Can it be done in preamble?
Thank you.
Best Answer
Below there's one possible solution; the key ideas were:
I used the solution given in How to keep a constant baselineskip when using minipages (or \parboxes)? to guarantee spacing after the
minipage
s.Before the minipages I used
\smallskip\nointerlinespacing
.I defined a newenvironment
sminipage
(to apply\small
insideminipage
); the optional argument (set by default tot
) controls the alignment of theminipage
and the mandatory argument sets the width of theminipage
.I also made some other modifications to improve your code:
I removed the spurious blank space after the first
\end{minipage}
.I defined a
\Pder
command to facilitate the writing of the partial derivatives.The idea was to obtain (approximately) the same spacing around the equations inside the
minipage
as the one used for regular equations not inside aminipage
(I added aregular
equation environment at the end just for comparison purposes):I defined now (as was requested in a comment) a new environment
eqmpage
which basically is a top alignedminipage
with constant width of\linewidth
which automates all the preparations mentioned above: