Hot answers tagged

9

Use a \parbox: \documentclass[twocolumn]{article} \usepackage{amsmath} \usepackage{lipsum} \begin{document} \lipsum*[2] \begin{equation} \partial_{ab}(i,j)= \begin{cases} 0, & \parbox[t]{.5\displaywidth}{ \raggedright if $(j,i,a)$ is immediately followed by the same job that follows $(j,i,b)$} \\ 1, & \text{otherwise} \end{cases} ...


7

Use align* instead, like so: \documentclass[12pt,a4paper]{article} \usepackage[a4paper,vmargin=0.7in,hmargin=0.7in]{geometry} \usepackage[utf8]{inputenc} \usepackage[misc]{ifsym} \usepackage{amsmath,amsfonts,amssymb} \usepackage{array,booktabs} \usepackage{parskip} \begin{document} \begin{align*} x_1 &= \dfrac{a+\sqrt{a^2-4b}}{2} & x_2 &= ...


6

First of all, empty lines are not allowed in displayed math environments (like equation), remove those. Second, you are in math mode, so there is no need for $\infty$, \infty alone is correct. Finally, the \emph doesn't really do anything useful I think, I would remove them and the dollar signs. \documentclass{article} \usepackage{amsmath} \begin{document} ...


4

You can not have blank lines in equation delete the three blank lines and the error will go.


1

You can wrap the two formulas in minipages \documentclass[12pt,a4paper]{article} \usepackage[a4paper,vmargin=0.7in,hmargin=0.7in]{geometry} \usepackage[utf8]{inputenc} \usepackage[misc]{ifsym} \usepackage{amsmath,amsfonts,amssymb} \usepackage{array,booktabs} \usepackage{parskip} \begin{document} \large \begin{minipage}{.5\textwidth} ...


1

If you (a) reduce the values of the length parameters \arraycolsep, \thickmuskip, and \medmuskip and (b) use the bmatrix environment of the amsmath package instead of array environments, the equation and the equation number fit on a single line. \documentclass[12pt]{report} \usepackage{amsmath} \usepackage[vmargin=25mm]{geometry} ...


1

I propose to use the medsize environment (about 80 % of \displaystyle), from nccmath. Also I simplified your code, using the bmatrix environment: \documentclass[12pt]{report} \usepackage{geometry} \usepackage{mathtools, nccmath} \geometry{ top=25mm, bottom=25mm, showframe } \newcommand{\sss}[2]{_{_{#1_{#2}}}} \begin{document} Some text some text some ...


1

If you use ~ instead of spaces the whole expression will stay together!



Only top voted, non community-wiki answers of a minimum length are eligible