jeslago / optidef

A Latex library for optimization problems
57 stars 3 forks source link

maxi environment changed the alignment #47

Open carlosal1015 opened 1 year ago

carlosal1015 commented 1 year ago

Hi, when I use TeX Live 2023, the example of the manual gives a slightly different output.

\documentclass{article}
\usepackage{optidef}

\begin{document}

\begin{maxi}
    {w}{f(w)+ R(w+6x)}
    {g(w)}{=0}
    {\label{eq:Example1}}{}
    \addConstraint{g(w)}{=0}
    \addConstraint{n(w)}{= 6}
    \addConstraint{L(w)+r(x)}{=Kw+p}
    \addConstraint{h(x)}{=0.}
\end{maxi}

\end{document}

image