TeX - LaTeX Asked by UnPerrito on March 23, 2021
I’m writing a combinatorics resume for me so I need to write things like some number is equal to the number of objects satisfying some condition. In the way of this I tried
documentclass{article}
usepackage[utf8]{inputenc}
usepackage[spanish]{babel}
usepackage{enumerate}
usepackage[shortlabels]{enumitem}
usepackage{amsthm}
usepackage{xcolor}
usepackage{makeidx}
usepackage{mathtools}
usepackage{amssymb}
usepackage[most]{tcolorbox}
newcommand{row}{operatorname{row}}
newcommand{col}{operatorname{col}}
begin{document}
[M_{lambda alpha}=#mbox{matrices such that row(A)=lambda, col(A)=alpha}]
end{document}
but
` is not giving the break line I need. Probably I’m not using the right environment?
Basically what I want is an equality of two things but in the right-hand side I need two lines (or more…)
p.s: obviously I defined row and col in the preamble…
See, if the following is what you looking for:
documentclass{article}
%usepackage[utf8]{inputenc} % is default for recent article
usepackage[spanish]{babel}
usepackage{mathtools}
newcommand{row}{operatorname{row}}
newcommand{col}{operatorname{col}}
% other packages in your preamble are not relevant for your example
begin{document}
begin{align*}
M_{lambda alpha} & = text{# matrices such that}
&qquad row(A)=lambda, col(A)=alpha
end{align*}
end{document}
Addendum:
documentclass{article}
usepackage[spanish]{babel}
usepackage{mathtools}
newcommand{row}{operatorname{row}}
newcommand{col}{operatorname{col}}
begin{document}
[
M_{lambda alpha} =
begin{aligned}
& text{# matrices such that}
& row(A)=lambda, col(A)=alpha
end{aligned}
]
or
[
M_{lambda alpha} = #
begin{aligned}
& text{matrices such that}
& row(A)=lambda, col(A)=alpha
end{aligned}
]
end{document}
Correct answer by Zarko on March 23, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP