I'm using witharrows package to document my steps in solving an equation like so:

    \begin{WithArrows}[format=l, jot=4pt]
    \sin^2x &= 3 \cdot \cos^2x \Arrow[]{$\div \cos^2x$} &\\[4pt]
    \frac{\sin^2x}{\cos^2x} &= 3

I wish for the equation to be aligned to the left so I set an anchor point in the end as-well &.

The result is centered and the arrows are overlapping the equations and I'm not sure why: enter image description here

I get the following errors:

Package witharrows Error: You should use the command \Arrow only in the last(witharrows) {WithArrows}. ^^I\end{flalign*}
Package witharrows Error: Your environment {WithArrows} has 1 columns and

Which I cannot understand.
Would appreciate help deciphering what it means and how to solver it.
Thanks in advance.

EDIT: full example: https://pastebin.com/hshSaUra

  • You should put a complete compilable code (with the \documentclass, the \begin{document}, the \end{document}, etc.). Oct 28, 2020 at 21:43
  • @F.Pantigny I've added the full code
    – Jorayen
    Oct 28, 2020 at 21:56

1 Answer 1


Maybe you want that:

enter image description here




$\begin{WithArrows}[format=l, jot=4pt]
\sin^2x = 3 \cdot \cos^2x \Arrow[]{$\div \cos^2x$} \\[4pt]
\frac{\sin^2x}{\cos^2x} = 3

  • Then the equation is just centered and not aligned to the left next to (a)
    – Jorayen
    Oct 28, 2020 at 21:54
  • Actually I missed the part where you wrapped the whole environment with $ inline math expression, and that actually solved it. Can you explain why you did that?
    – Jorayen
    Oct 28, 2020 at 22:02
  • 1
    The environment {WithArrows} is similar to the environment {aligned} of amsmath (and mathtools): it is composed in its own box, can be inserted in other environment, and must be composed in math mode. On the other side, the environment {DispWithArrows} is similar to {align} (which is not {aligned}): it takes the full width of the page (or current column) and must not be composed in math mode. Oct 28, 2020 at 22:08
  • 1
    Why not use \dfrac for the last line?
    – Bernard
    Oct 28, 2020 at 22:16
  • 1
    @Jorayen: There's not much to say: compare the result of \frac{…}{…} in a displayed equation and in an online formula . The dfrac, \cfrac and tfrac commands are introduced by amsmath, are are explained in detail in amsldoc.pdf, which is a part of the documentation of the package. As to mfrac (medium-sized fractions) it id defined, along with other medium-size commands and environment by the nccmath package; you can read details and examples in its documentation.
    – Bernard
    Oct 29, 2020 at 12:47

You must log in to answer this question.

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