Aligning multiple equations split
up vote
1
down vote
favorite
I want to replicate this:
However I got this:
Can anyone help me please?
My MWE is this:
immediatewrite18{makeindex jobname.nlo -s nomencl.ist -o jobname.nls}
documentclass[a4paper,11pt,oneside]{book}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{mathpazo}
usepackage{geometry}
usepackage[colorinlistoftodos]{todonotes}
usepackage{tablefootnote}
usepackage{graphicx}
usepackage{adjustbox}
usepackage{array}
usepackage{mathtools}
usepackage{float}
usepackage{subfig}
%, nccmath}
usepackage{siunitx}
usepackage{mhchem}
usepackage{chemfig}
usepackage[colorinlistoftodos]{todonotes}
usepackage[autostyle]{csquotes}
usepackage{multirow}
usepackage{xcolor}
usepackage{booktabs}
usepackage{soul}
usepackage{acro}
usepackage{pgfplots}
usepackage{enumitem}
usepackage{lscape}
usepackage{tabularx}
usepackage{nomencl}
makenomenclature
usepackage{amsmath}
usepackage{lipsum}
%usepackage[toc,page]{appendix}
%usepackage{tikz}
usetikzlibrary{intersections, calc}
pgfplotsset{compat=1.14}
usepackage{filecontents}
acsetup{first-style=short}
usepackage[backend=bibtex,style=authoryear,natbib=true]{biblatex}
addbibresource{example.bib}
begin{document}
begin{equation}
begin{split}
mathbold{min}~ nabla f(x)^{T} d + frac{1}{2} d^{T} Hd \
mathbold{s.t.}~ g_{j}(x) + nabla g_{j}(x)^{T} d leq 0 , quad j = 1, ..., m, \
g_{j}(x) + nabla g_{j}(x)^{T} d = 0 quad j = m +1, ..., m+l,
end{split}
end{equation}
end{document}
math-mode equations split
add a comment |
up vote
1
down vote
favorite
I want to replicate this:
However I got this:
Can anyone help me please?
My MWE is this:
immediatewrite18{makeindex jobname.nlo -s nomencl.ist -o jobname.nls}
documentclass[a4paper,11pt,oneside]{book}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{mathpazo}
usepackage{geometry}
usepackage[colorinlistoftodos]{todonotes}
usepackage{tablefootnote}
usepackage{graphicx}
usepackage{adjustbox}
usepackage{array}
usepackage{mathtools}
usepackage{float}
usepackage{subfig}
%, nccmath}
usepackage{siunitx}
usepackage{mhchem}
usepackage{chemfig}
usepackage[colorinlistoftodos]{todonotes}
usepackage[autostyle]{csquotes}
usepackage{multirow}
usepackage{xcolor}
usepackage{booktabs}
usepackage{soul}
usepackage{acro}
usepackage{pgfplots}
usepackage{enumitem}
usepackage{lscape}
usepackage{tabularx}
usepackage{nomencl}
makenomenclature
usepackage{amsmath}
usepackage{lipsum}
%usepackage[toc,page]{appendix}
%usepackage{tikz}
usetikzlibrary{intersections, calc}
pgfplotsset{compat=1.14}
usepackage{filecontents}
acsetup{first-style=short}
usepackage[backend=bibtex,style=authoryear,natbib=true]{biblatex}
addbibresource{example.bib}
begin{document}
begin{equation}
begin{split}
mathbold{min}~ nabla f(x)^{T} d + frac{1}{2} d^{T} Hd \
mathbold{s.t.}~ g_{j}(x) + nabla g_{j}(x)^{T} d leq 0 , quad j = 1, ..., m, \
g_{j}(x) + nabla g_{j}(x)^{T} d = 0 quad j = m +1, ..., m+l,
end{split}
end{equation}
end{document}
math-mode equations split
For your code there is an error (using Papeeria):/main.tex :37 Package pgfkeys Error: Choice '1.14' unknown in choice key '/pgfplots/compat/anchors'. I am going to ignore this key. [pgfplotsset{compat=1.14}]
.
– Sebastiano
Dec 3 at 19:59
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I want to replicate this:
However I got this:
Can anyone help me please?
My MWE is this:
immediatewrite18{makeindex jobname.nlo -s nomencl.ist -o jobname.nls}
documentclass[a4paper,11pt,oneside]{book}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{mathpazo}
usepackage{geometry}
usepackage[colorinlistoftodos]{todonotes}
usepackage{tablefootnote}
usepackage{graphicx}
usepackage{adjustbox}
usepackage{array}
usepackage{mathtools}
usepackage{float}
usepackage{subfig}
%, nccmath}
usepackage{siunitx}
usepackage{mhchem}
usepackage{chemfig}
usepackage[colorinlistoftodos]{todonotes}
usepackage[autostyle]{csquotes}
usepackage{multirow}
usepackage{xcolor}
usepackage{booktabs}
usepackage{soul}
usepackage{acro}
usepackage{pgfplots}
usepackage{enumitem}
usepackage{lscape}
usepackage{tabularx}
usepackage{nomencl}
makenomenclature
usepackage{amsmath}
usepackage{lipsum}
%usepackage[toc,page]{appendix}
%usepackage{tikz}
usetikzlibrary{intersections, calc}
pgfplotsset{compat=1.14}
usepackage{filecontents}
acsetup{first-style=short}
usepackage[backend=bibtex,style=authoryear,natbib=true]{biblatex}
addbibresource{example.bib}
begin{document}
begin{equation}
begin{split}
mathbold{min}~ nabla f(x)^{T} d + frac{1}{2} d^{T} Hd \
mathbold{s.t.}~ g_{j}(x) + nabla g_{j}(x)^{T} d leq 0 , quad j = 1, ..., m, \
g_{j}(x) + nabla g_{j}(x)^{T} d = 0 quad j = m +1, ..., m+l,
end{split}
end{equation}
end{document}
math-mode equations split
I want to replicate this:
However I got this:
Can anyone help me please?
My MWE is this:
immediatewrite18{makeindex jobname.nlo -s nomencl.ist -o jobname.nls}
documentclass[a4paper,11pt,oneside]{book}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{mathpazo}
usepackage{geometry}
usepackage[colorinlistoftodos]{todonotes}
usepackage{tablefootnote}
usepackage{graphicx}
usepackage{adjustbox}
usepackage{array}
usepackage{mathtools}
usepackage{float}
usepackage{subfig}
%, nccmath}
usepackage{siunitx}
usepackage{mhchem}
usepackage{chemfig}
usepackage[colorinlistoftodos]{todonotes}
usepackage[autostyle]{csquotes}
usepackage{multirow}
usepackage{xcolor}
usepackage{booktabs}
usepackage{soul}
usepackage{acro}
usepackage{pgfplots}
usepackage{enumitem}
usepackage{lscape}
usepackage{tabularx}
usepackage{nomencl}
makenomenclature
usepackage{amsmath}
usepackage{lipsum}
%usepackage[toc,page]{appendix}
%usepackage{tikz}
usetikzlibrary{intersections, calc}
pgfplotsset{compat=1.14}
usepackage{filecontents}
acsetup{first-style=short}
usepackage[backend=bibtex,style=authoryear,natbib=true]{biblatex}
addbibresource{example.bib}
begin{document}
begin{equation}
begin{split}
mathbold{min}~ nabla f(x)^{T} d + frac{1}{2} d^{T} Hd \
mathbold{s.t.}~ g_{j}(x) + nabla g_{j}(x)^{T} d leq 0 , quad j = 1, ..., m, \
g_{j}(x) + nabla g_{j}(x)^{T} d = 0 quad j = m +1, ..., m+l,
end{split}
end{equation}
end{document}
math-mode equations split
math-mode equations split
asked Dec 3 at 19:51
user151562
2277
2277
For your code there is an error (using Papeeria):/main.tex :37 Package pgfkeys Error: Choice '1.14' unknown in choice key '/pgfplots/compat/anchors'. I am going to ignore this key. [pgfplotsset{compat=1.14}]
.
– Sebastiano
Dec 3 at 19:59
add a comment |
For your code there is an error (using Papeeria):/main.tex :37 Package pgfkeys Error: Choice '1.14' unknown in choice key '/pgfplots/compat/anchors'. I am going to ignore this key. [pgfplotsset{compat=1.14}]
.
– Sebastiano
Dec 3 at 19:59
For your code there is an error (using Papeeria):
/main.tex :37 Package pgfkeys Error: Choice '1.14' unknown in choice key '/pgfplots/compat/anchors'. I am going to ignore this key. [pgfplotsset{compat=1.14}]
.– Sebastiano
Dec 3 at 19:59
For your code there is an error (using Papeeria):
/main.tex :37 Package pgfkeys Error: Choice '1.14' unknown in choice key '/pgfplots/compat/anchors'. I am going to ignore this key. [pgfplotsset{compat=1.14}]
.– Sebastiano
Dec 3 at 19:59
add a comment |
1 Answer
1
active
oldest
votes
up vote
3
down vote
A solution with two (nested) alignedat
environments. I removed all unrelated packages. Note you don't have to load amsmath
if you load mathtools
– the latter does it for you:
documentclass[a4paper, 11pt, oneside]{book}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{mathpazo}
usepackage{geometry}
usepackage{mathtools}
begin{document}
begin{equation}
begin{alignedat}{2}
& mathbold{min} & enspace & nabla f(x)^{T} d + frac{1}{2} d^{T} Hd \
& mathbold{s.t.} & & begin{alignedat}[t]{2}
g_{j}(x) + nabla g_{j}(x)^{T} d & leq 0 , & quad j & = 1, ..., m, \
g_{j}(x) + nabla g_{j}(x)^{T} d & = 0 & j & = m +1, ..., m+l,
end{alignedat}
end{alignedat}
end{equation}
end{document}
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
3
down vote
A solution with two (nested) alignedat
environments. I removed all unrelated packages. Note you don't have to load amsmath
if you load mathtools
– the latter does it for you:
documentclass[a4paper, 11pt, oneside]{book}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{mathpazo}
usepackage{geometry}
usepackage{mathtools}
begin{document}
begin{equation}
begin{alignedat}{2}
& mathbold{min} & enspace & nabla f(x)^{T} d + frac{1}{2} d^{T} Hd \
& mathbold{s.t.} & & begin{alignedat}[t]{2}
g_{j}(x) + nabla g_{j}(x)^{T} d & leq 0 , & quad j & = 1, ..., m, \
g_{j}(x) + nabla g_{j}(x)^{T} d & = 0 & j & = m +1, ..., m+l,
end{alignedat}
end{alignedat}
end{equation}
end{document}
add a comment |
up vote
3
down vote
A solution with two (nested) alignedat
environments. I removed all unrelated packages. Note you don't have to load amsmath
if you load mathtools
– the latter does it for you:
documentclass[a4paper, 11pt, oneside]{book}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{mathpazo}
usepackage{geometry}
usepackage{mathtools}
begin{document}
begin{equation}
begin{alignedat}{2}
& mathbold{min} & enspace & nabla f(x)^{T} d + frac{1}{2} d^{T} Hd \
& mathbold{s.t.} & & begin{alignedat}[t]{2}
g_{j}(x) + nabla g_{j}(x)^{T} d & leq 0 , & quad j & = 1, ..., m, \
g_{j}(x) + nabla g_{j}(x)^{T} d & = 0 & j & = m +1, ..., m+l,
end{alignedat}
end{alignedat}
end{equation}
end{document}
add a comment |
up vote
3
down vote
up vote
3
down vote
A solution with two (nested) alignedat
environments. I removed all unrelated packages. Note you don't have to load amsmath
if you load mathtools
– the latter does it for you:
documentclass[a4paper, 11pt, oneside]{book}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{mathpazo}
usepackage{geometry}
usepackage{mathtools}
begin{document}
begin{equation}
begin{alignedat}{2}
& mathbold{min} & enspace & nabla f(x)^{T} d + frac{1}{2} d^{T} Hd \
& mathbold{s.t.} & & begin{alignedat}[t]{2}
g_{j}(x) + nabla g_{j}(x)^{T} d & leq 0 , & quad j & = 1, ..., m, \
g_{j}(x) + nabla g_{j}(x)^{T} d & = 0 & j & = m +1, ..., m+l,
end{alignedat}
end{alignedat}
end{equation}
end{document}
A solution with two (nested) alignedat
environments. I removed all unrelated packages. Note you don't have to load amsmath
if you load mathtools
– the latter does it for you:
documentclass[a4paper, 11pt, oneside]{book}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{mathpazo}
usepackage{geometry}
usepackage{mathtools}
begin{document}
begin{equation}
begin{alignedat}{2}
& mathbold{min} & enspace & nabla f(x)^{T} d + frac{1}{2} d^{T} Hd \
& mathbold{s.t.} & & begin{alignedat}[t]{2}
g_{j}(x) + nabla g_{j}(x)^{T} d & leq 0 , & quad j & = 1, ..., m, \
g_{j}(x) + nabla g_{j}(x)^{T} d & = 0 & j & = m +1, ..., m+l,
end{alignedat}
end{alignedat}
end{equation}
end{document}
answered Dec 3 at 20:16
Bernard
164k769192
164k769192
add a comment |
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f463031%2faligning-multiple-equations-split%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
For your code there is an error (using Papeeria):
/main.tex :37 Package pgfkeys Error: Choice '1.14' unknown in choice key '/pgfplots/compat/anchors'. I am going to ignore this key. [pgfplotsset{compat=1.14}]
.– Sebastiano
Dec 3 at 19:59