2

The spacing is too much; I want some space between the equations, but not as much space as of the following. I would appreciate if someone could provide me with a coherent answer.

    \documentclass[11pt,a4paper]{article}
    \usepackage{blindtext}
    \usepackage{mathtools}
    \DeclareMathOperator{\sgn}{sgn}
\begin{document}
\begin{flalign*}
&+(+a)=+a,& &-(+a)=-a&\\
&+(-a)=-a,& &-(-a)=+a&
\end{flalign*}
\end{document}

2 Answers 2

3

Not sure what will best meet your criterion of "not as much space" being taken between the two columns of equations. The following solution may fit the bill. It also results, incidentally, in better centering of the material -- which I take to be a criterion as well.

enter image description here

\documentclass[11pt,a4paper]{article}
\usepackage{amsmath}
\begin{document}
\begin{align*}
+(+a)&=+a,& -(+a)&=-a\\
+(-a)&=-a,& -(-a)&=+a
\end{align*}
\end{document}
2
  • This would be perfect for me. I could doubtless continue with it. I apologise for my question should have been altered as the space between the two columns of equations. Thank you very much for providing me an answer with coherence. Oct 20, 2014 at 8:15
  • 1
    @NisalKevinKotinkaduwa - Thanks. It's always good to know one is being coherent... :-)
    – Mico
    Oct 20, 2014 at 8:19
7

With alignat you control the space by yourself.

\documentclass[11pt,a4paper]{article}
\usepackage{mathtools}
\DeclareMathOperator{\sgn}{sgn}
\begin{document}
\begin{alignat*}{2}
+(+a)&=+a,& \qquad -(+a)&=-a\\
+(-a)&=-a,&       -(-a)&=+a
\end{alignat*}
\begin{alignat*}{2}
+(+a)&=+a,& \hspace{1in} -(+a)&=-a\\
+(-a)&=-a,&       -(-a)&=+a
\end{alignat*}
\end{document}

enter image description here

2
  • I used the method you previously taught me to make space between these columns of equations. Unfortunately, I could not make them contracted as you did right now. This is the exact way in which the book I showed you had kept space. Thank you very much, Sir Harish! Oct 20, 2014 at 8:22
  • @NisalKevinKotinkaduwa You are welcome. :)
    – user11232
    Oct 20, 2014 at 8:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.