1
\documentclass[tikz,border=10pt]{standalone}
\usepackage{amsmath}
\begin{document}
    \begin{equation*}
        \begin{split}
            \sin(B\hat{A}M) & =2\sin(15)\sin\left(135-B\hat{A}M\right)\\
                            & =2\sin(15)\left(\sin(135)\cos\left(B\hat{A}M\right)-\cos(135)\sin\left(B\hat{A}M\right)\right)
        \end{split}
    \end{equation*}
    %
    \noindent
    \begin{equation*}
        \begin{split}
            \tan(B\hat{A}M) & =\sin(15)\left(\sqrt{2}-\sqrt{2}\tan\left(B\hat{A}M\right)\right)\\
                            & =\frac{\sqrt{2}\sin(15)}{\sqrt{2}\sin(15)+1}\\
        \end{split}
    \end{equation*}
\end{document}

So I tried \noindent and %, but I can't seem to get the two equations to align up. I recognise that there are probably better ways than two split environments to achieve the result, so feel free to mention them. However, I would like to know where I went wrong in my indenting for future reference. enter image description here

8
  • Well, just use a single ((split) equation* environment.
    – Bernard
    Commented Jan 16, 2022 at 19:21
  • 1
    the split environment is centred by the equation if you want it left aligned to a fixed indent, use the fleqn package option Commented Jan 16, 2022 at 19:58
  • 1
    there is no reason to use split here, you could replace the equation* by align* then you don't need a nested environment Commented Jan 16, 2022 at 20:03
  • Off-topic: Have you considered writing \widehat{BAM} instead of B\hat{A}M?
    – Mico
    Commented Jan 16, 2022 at 20:36
  • @Mico I didn't know that was a convention for angles
    – yolo
    Commented Jan 16, 2022 at 21:39

1 Answer 1

2

Yo are using a centred equation* so each of the split environments is centred see the marked spaces

enter image description here

Here I think you just want a single align*

enter image description here

\documentclass[tikz,border=10pt]{standalone}
\usepackage{amsmath}
\begin{document}
  \noindent X\dotfill X
    \begin{align*}
            \sin(B\hat{A}M) & =2\sin(15)\sin\left(135-B\hat{A}M\right)\\
                            & =2\sin(15)\left(\sin(135)\cos\left(B\hat{A}M\right)-\cos(135)\sin\left(B\hat{A}M\right)\right)
\\[\jot]
            \tan(B\hat{A}M) & =\sin(15)\left(\sqrt{2}-\sqrt{2}\tan\left(B\hat{A}M\right)\right)\\
                            & =\frac{\sqrt{2}\sin(15)}{\sqrt{2}\sin(15)+1}\\
    \end{align*}
\end{document}
2
  • +1. I might be tempted to eliminate most (all?) \left and \right directives, though. And the final row needn't be terminated with a double-backslash.
    – Mico
    Commented Jan 16, 2022 at 20:34
  • @Mico perhaps yes although I more or less intentionally kept the interior markup unchanged here as it wasn't too bad and wasn't related to the alignment question Commented Jan 16, 2022 at 20:37

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .