Notes on the formulations of the QP problem as a QP in LaTeX