The basic outline of the equation below is correct but how can I make the text appear correctly right now it appears scrunched up?  \documentclass{report} \begin{document} \begin{align*}  \left.  k_S  = \left\lbrace \begin{array}{l} k_{LW}    \text{if} k_{ICOMP}&lt;k_{LW} \\ k_{ICOMP} \text {otherwise} \end{array} \right. \end{align*} \end{document}
41289
Lets say I have something like:   \[ Let x = number of cats \]   (This is a contrived example, but pretend we are actually inside a long align environment block...) "Let" and "number of cats" need to be written like normal text, while x= needs to be math type text.  I've seen this:  \[ \mbox{Let } x = \mbox{ number of cats} \]   and this:  \[ \textrm{Let } x = \textrm{ number of cats} \]   They seem to produce equivalent output, but I'm not sure which is the "correct" one. Also, they are not ideal in that the extra space needs to be placed inside the text mode block, otherwise it is ignored as math mode and butts the text right up against the math.  Ideally there would be some command which allowed embedding text into an equation, which correctly inserted leading and trailing space around the block as required without adding space inside the text block.  How does one do that "correctly"?
28166
align environment without any explicit alignments points (given by &amp;) right justifies the equations in the block. They can be left justified by putting &amp; at the beginning of each equation. Is there any way to left justify them without starting &amp;-s? Maybe some special environment or option? It seems to be an extra work to tell the compiler again and again that I want left alignment on each line.
80167
I am trying to align a multiline equation using array within the equation but it turns out it doesn't do very well. The code I am using is as follows:  \begin{equation}    \begin{array}{lcl} \mathcal{L}^{-1}\left\{f(d)\right\} &amp;= \mathcal{L}^{-1}\left\{f_1(\delta).f_2(\delta)\right\} \\ &amp; = exp(mt) \star \left\{\frac{l}{2\sqrt{\pi t^3}} exp(-l^2/{4t})\right\} \\ &amp; = F_1 * F_2 \end{array} \end{equation}   Can anyone suggest better way to deal with it ?
13761
Equation exceeds one column of IEEE pattern in LaTeX how should I correct it? Please help, the code is attached herewith.  \begin{equation}\label{eq11}         p\left( {v,h|u,y,...} \right) = {\rm{RelU}}\left( {\left[ {\hat b + {w^h}\left\{ {\left( {{v^T}{w^v}} \right) \circ \left( {{y^T}{w^y}} \right)} \right\}} \\ \right]*\left[ {\hat a + {w^v}\left\{ {\left( {{h^T}{w^h}} \right) \circ \left( {{y^T}{w^y}} \right)} \right\}} \right]} \right) \end{equation}
46029
What LaTeX markup would one have to write to produce a result similar to the image below?    Please excuse my Paint-and-mouse drawing skills. :-)
96202
Some symbols in equations in a presentation show up looking like this in LibreOffice      I'm using Ubuntu 16.04.1
47235
I'm using scrreprt class and I'm having troubles with different behavior of $$ and \[ \]-written equations and equation environment. The problem is that alignment is not the same: $$ equations are centered while equations in equation environment are left aligned.  For example, the following code  Equations: \begin{equation}\label{nelineq} f(x)=0 \end{equation} \begin{equation*}\label{nelineq} f(x)=0 \end{equation*} $$ f(x)=0 $$ \[ f(x)=0 \]   produces   I would like to make all three usages consistent (not yet sure if centered or left aligned).  The question is, how to permanently change default alignments for all three cases? But without use of align or similar environments (dont want to edit all existing equations).  I know that $$ is deprecated, but what about other two methods?
85096
Look at the following example  \begin{align}      &amp; x \\      \overset{\text{some long explanation}}= &amp; foo \\      &amp; = bar \end{align}   what is the best way to get the equal signs aligned? Now I have seen different solution such as adding \overset{\hphantom{\ţext{some long explanation}}}= to the beginning of every line, but I don't really think that is the best solution. Any better ideas?    UPDATE  I guess what i am actually after is   aligning the first column of the align environment right aligning the equal sign under the overset text right
11664
I am just curious that the following format looks good to you or not? The preamble I used is just   \documentclass[12pt,a4paper]{article}  \usepackage{amsmath} \usepackage{amsthm} \usepackage{amssymb}   I don't feel it's so good because the first paragraph has no indent but the second does. If the first paragraph is much longer, than it's fine. But if not, it looks strange. Should I leave it, or you have suggestions for this?
22585
Take a look at this here:  \documentclass[10pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \begin{document} \begin{align*} \Leftrightarrow \qquad P'_1(t)+\lambda P_1(t)&amp;=\lambda e^{-\lambda t} &amp;&amp; (2.6)\\ \Leftrightarrow \qquad e^{\lambda t}P'_1(t)+\lambda e^{\lambda t}P_1(t)&amp;=\lambda e^{\lambda t} e^{-\lambda t}=\lambda \\ \end{align*} \end{document}   Is it possible to have the equivalences below each other like the equations are?  \documentclass[10pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \begin{document} \begin{alignat*}{4} P'_1(t)&amp;=-\lambda P_1(t)+\lambda P_0(t)\\ \Leftrightarrow &amp;&amp;\qquad  P'_1(t)+\lambda P_1(t)&amp;=\lambda e^{-\lambda t} &amp;&amp; (2.6)\\ \Leftrightarrow &amp;&amp;  e^{\lambda t}P'_1(t)+\lambda e^{\lambda t}P_1(t)&amp;=\lambda e^{\lambda t} e^{-\lambda t}=\lambda \\ \end{alignat*} \end{document}   This almost works but i have the mention problem that the first line is pulled to the very left.
57742
\documentclass[aps,twocolumn]{revtex4}  \usepackage{epsfig}   \usepackage{amsmath}   \usepackage{epsfig}    \renewcommand{\baselinestretch}{1.45}   \begin{document}  \begin{equation}   V_S(x)=V_1 \Theta(x/a) + iV_2 \delta(x/a),~       \Theta(x&lt;0)=0,\Theta(x&gt;0)=1.       \end{equation}  \end{document}   Equation number is not coming on same line, in two column document class, please help ??
107780
\documentclass [12pt]{article} \oddsidemargin=0pt \topmargin=0pt \textwidth=6.5in \textheight=8.5in \begin{document} \begin{center} {\large\bf\LaTeX\ Example 8} \end{center} Sometimes we have to typeset a sequence of calculations: \begin{align} \sum_{r=1}^k\left( l(r)-l(r-1)\right)  &amp;= \sum_{r=1}^k\left(N-2r+1\right) \\  &amp;= k(N+1)-2\sum_{r=1}^kr \\  &amp;= k(N+1)-k(k+1) \\  &amp;= k(N-k)  \end{align} \begin{quote} \begin{verbatim} \begin{align} \sum_{r=1}^k\left( l(r)-l(r-1)\right)  &amp;= \sum_{r=1}^k\left(N-2r+1\right) \\  &amp;= k(N+1)-2\sum_{r=1}^kr \\  &amp;= k(N+1)-k(k+1) \\  &amp;= k(N-k)  \end{align} \end{verbatim} \end{quote} Here is another way: \begin{eqnarray*}  \sum_{r=1}^k\left(l(r)-l(r-1)\right)  &amp;=&amp; \sum_{r=1}^k\left(N-2r+1\right) \\  &amp;=&amp; k(N+1)-2\sum_{r=1}^kr \\  &amp;=&amp; k(N+1)-k(k+1) \\ &amp;=&amp; k(N-k)  \end{eqnarray*} \begin{quote} \begin{verbatim} \begin{eqnarray*}  \sum_{r=1}^k\left(l(r)-l(r-1)\right)  &amp;=&amp; \sum_{r=1}^k\left(N-2r+1\right) \\  &amp;=&amp; k(N+1)-2\sum_{r=1}^kr \\  &amp;=&amp; k(N+1)-k(k+1) \\ &amp;=&amp; k(N-k)  \end{eqnarray*} Observations: \begin{itemize} \item The eqnarray environment is a displayed array with three columns.  It is aligned on the center column. \item The \verb+*+ supresses the generation of equation numbers. \end {itemize} ---Britney Wiggins \end{document}
25494
I always use align in my documents, and avoid equation. Is there anything wrong with that? My reasoning behind this: align > equation, so why not use it?
30263
I just read a book "Linear Algebra and Its Applications 4E" by David C. Lay. The book is (should be) LaTeX typeset. The matrix and equations are so nice, please see the following 3 examples:        It's so beautiful, so I want get the same effect inside my paper. Here is my code:   \usepackage{amsmath} \usepackage{colortbl} \newcommand\y{\cellcolor{clight2}} \definecolor{clight2}{RGB}{212, 237, 244}%  %%% \[A=\left[ \begin{array}{ccccc} \y 0 &amp; -3 &amp; -6 &amp; 4 &amp; 9 \\    -1 &amp; \y -2 &amp; -1 &amp; 3 &amp; 1 \\ -2 &amp; -3 &amp; 0 &amp; \y 3 &amp; -1 \\ 1 &amp; 4 &amp; 5 &amp; -9 &amp; -7      \end{array} \right]\]  \[A=\left[\begin{array}{cccccc} \rowcolor{clight2} 3 &amp; -9 &amp; 12 &amp; -9 &amp; 6 &amp; 15\\ 0 &amp; 2 &amp; -4 &amp; 4 &amp; 2 &amp; -6 \\ 0 &amp; 3 &amp; -6 &amp; 6 &amp; 4 &amp; -5 \end{array} \right]\]   And the result:     But how to add these arrows??
108644
I'm writing my thesis with latex and I have a problem with this table setting. I would like to have all the equations aligned on the left and also the first and the last rows less height. Here is my code  \begin{table}\centering \begin{tabular}{ m{3cm} m{10cm} }\hline Continuity &amp; {\begin{equation} \frac{\partial \rho}{\partial t}+\nabla\cdot\left ( \rho\mathbf{V}\right )   =0\label{continuity_1}\end{equation}}\\ x-momentum\newline\newline y-momentum\newline\newline z-momentum &amp; {\begin{subequations}\begin{align} &amp;\frac{\left ( \partial \rho u\right ) }{\partial t}+\nabla\cdot\left ( \rho u\mathbf{V}\right ) = -\frac{\partial p}{\partial x}+\nabla\cdot\left ( \mu\nabla u\right ) +S_{Mx}\\ &amp;\frac{\left ( \partial \rho v\right ) }{\partial t}+\nabla\cdot\left ( \rho v\mathbf{V}\right ) = -\frac{\partial p}{\partial y}+\nabla\cdot\left ( \mu\nabla v\right ) +S_{My}\\ &amp;\frac{\left ( \partial \rho w\right ) }{\partial t}+\nabla\cdot\left ( \rho w\mathbf{V}\right ) = -\frac{\partial p}{\partial z}+\nabla\cdot\left ( \mu\nabla w\right ) +S_{Mz} \end{align}\label{NS_eq1}\end{subequations}}\\ Energy &amp; {\begin{equation} \frac{\left ( \partial \rho e\right ) }{\partial t}+\nabla\cdot\left ( \rho e\mathbf{V}\right ) =-p\nabla\cdot\mathbf{V}+\nabla\left ( k\nabla T \right ) + \Phi + S_{i} \label{energy_1}\end{equation}}\\ \hline\end{tabular}\caption{Governing equations of flow for a Newtonian fluid}\label{NS_eqt}\end{table}   This is the result
42762
How to make the first line of aligned equations sit in the same baseline as the bullet and make the equation left justified?    \documentclass{article} \usepackage{amsmath} \begin{document} \begin{itemize}     \item $3!=3\times2\times1=6$     \item $\tfrac{5!}{3!}=\tfrac{5\times4\times3!}{3!}=5\times4=20$     \item \begin{align*}                     \frac{n!}{(n-2)!}   &amp;=\frac{n\times(n-1)\times(n-2)!}{(n-2)!}\\                                                         &amp;=n\times(n-1)\\                                                         &amp;=n^2-n                 \end{align*} \end{itemize} \end{document}
26214
I am trying to align a set of long equations, that are themselves align environments as most of them are spreading on multiple lines.   Currently I just have a sequence of align environments, with each equation inside in order to align the pieces of each equations. I am attaching a screenshot of the result:    What would like to get instead is something looking more like    which is the same set of equations after going through the copyediting office of a journal and looks much better.  Here is a MWE. I would like all three equations to align on the equal sign.  \documentclass{article} \usepackage{amsmath}  \begin{document} \begin{align} a &amp; =  b + c + d \nonumber \\   &amp; \qquad + e + f + g \label{eq:1} \end{align} \begin{align} k &amp; = l + m + n + m + n + m + n \nonumber \\   &amp; \qquad + o + p + q \label{eq:2} \end{align} \begin{equation} r = s + t (u + v + w) \label{eq:3} \end{equation} \end{document}