I'm new to Latex and am having trouble troubleshooting an equation that I can't get to display correctly. The equation I am trying to create in Latex is:   ...but I keep getting nested fractions starting with the 3rd to last term so it appears like:   The code I am using is:  \begin{equation} \centering \frac{\partial UB}{\partial t}+\frac{\partial UUB }{\partial x}+\frac{\partial WUB}{\partial z}=gB\sin\alpha+g\cos\alpha B\frac{\partial \eta}{\partial x}-\frac{g\cos\alpha B}{\rho} \[\int_\eta^z \frac{\partial \rho}{\partial x}dz\]+\frac{1}{\rho}\frac{\partial B\tau_x_x}{\partial x}+\frac{1}{\rho}\frac{\partial B\tau_x_z}{\partial z}+qBU_x \label{eqn:horizontalmomentum} \end{equation}   I'm also getting a whole bunch of errors:
121232
I have this tex: \(\mu_{A}\left(x\right)\in \[0,1  \right\]\)  The issue here is that [ and ] are not showing around 0,1, why is that?  Thanks.
43077
This part C\frac{1}{\sqrt{G}}\sqrt{\rho} doesn't seem to be on the same height as this part \sqrt{b}\sqrt{l} when compiled. What am I doing wrong?  \begin{flalign*} T=C\frac{1}{\sqrt{G}}\sqrt{\rho}\sqrt{b}\sqrt{l} &amp;&amp; \end{flalign*}
72728
% What to do here   \begin{document}   This is good integration.   $$\displaystyle \int x dx = \frac{x^2}{2}$$  \end{document}    I don't know much about LaTeX so I am going to need some spoon feeding.   I want text to appear in normal font. But math to appear in AMSEuler Font.  I don't want to make any changes inside the document.
70382
I have the following Latexcode:  \begin{equation} \mathscr{G} = A_{polygon} - \sum \limits_{C \in \Xi} A(C) \end{equation}   However, the sum index looks bad in my eyes, as the "is element of" sign is a little lower than the other two letters. It looks badly aligned.  Is there a way to fix this? I don't want to change to to smaller case letters as I have a convention for letter cases in my document.  edit: I've added a picture    I'd like the element sign to be above the red line i.e. vertically centered with C and Ξ.
91391
The highlighted part has the equation centred, which looks rather imbalance with the top equation, is it possible to align the highlighted part to the left? Below is the code I am using.  \begin{equation}~\label{eq:prob1} p_k(s)= \begin{cases}     \displaystyle\frac{c_k-q_k(s)}{c_k- \overline{c_k}} &amp; if\ q_k(s) &gt;  \overline{c_k} \\     1                                                   &amp; if\ q_k(s) \leq  \overline{c_k} \end{cases} \end{equation}
35158
Consider this:  \left( x-1 \right) \underbrace{ \left( ? \right) }_{ \text{what is this?} }   The label is longer than the braced portion, which causes unwanted space between the parentheses.  Is there a way around that, so that the parentheses "touch" as they would normally?  Please note that I just started on LaTeX, and I'm using TexMaths inside LibreOffice Writer.
116484
I'm trying to set up my equations for 3 hours and it's driving me crazy. I'm new in LaTeX so I don't master it at all.  This is the closest, with the simplest code, that I could get.  \documentclass[a4paper,11pt]{report}  \usepackage{amsmath} \begin{document}  \begin{align} dX(t)=&amp;-f1*X(t)L(t)dt+g1*U(t)dt\\     &amp;-\sqrt{f1*X(t)L(t)}dW1(t)+\sqrt{g1*U(t)}dW2(t) \end{align} \begin{align} dL(t)=&amp;-f1*X(t)L(t)dt+g1*U(t)dt-f2*U(t)L(t)dt+g2*Y(t)dt\\     &amp;-\sqrt{f1*X(t)L(t)}dW1(t)+\sqrt{g1*U(t)}dW2(t)\\     &amp;-\sqrt{f2*U(t)L(t)}dW3(t)+\sqrt{g2*Y(t)}dW4(t) \end{align} \begin{align} dU(t)=&amp;f1*X(t)L(t)dt-g1*U(t)dt-f2*U(t)L(t)dt+g2*Y(t)dt\\     &amp;+\sqrt{f1*X(t)L(t)}dW1(t)-\sqrt{g1*U(t)}dW2(t)\\     &amp;-\sqrt{f2*U(t)L(t)}dW3(t)+\sqrt{g2*Y(t)}dW4(t) \end{align} \begin{align} dY(t)=&amp;f2*U(t)L(t)dt-g2*Y(t)dt\\     &amp;+\sqrt{f2*U(t)L(t)}dW3(t)-\sqrt{g2*Y(t)}dW4(t) \end{align} \end{document}   And it's giving me this   It's close to what I want but I want the dX, dL, ... to be aligned aswell. And, if possible, but not very important, to get only one number of ref. for the whole set.  I tried numerous ways with align, split, aligned and I couldn't do it.  I've the conviction that the answer is very simple but I don't know what to try anymore, I've read so many post about it here and I'm still blocked.  Thank you.  Edit :  As suspected, it wasn't tricky at all, thank you very much.
29819
How do I insert the line "|" after the equation in LaTeX (see image below)? I'm using LyX so if you can point me to the symbol of that line is also OK.    I don't know if this line has a proper name so the title of this question may be very vague. If you could provide me a name, I'll edit this question's title.
87726
How to write the plus/minus signs aligned with the bottom of the fraction. I can write the rest of the part of equation (1.1) and (1.2). but can cot write the plus/minus sign at the bottom.
102104
I am writing some proofs using LaTeX, and following the standard procedure in the ConTeXt, I need to write something as follows:    However, I have no idea how to create the "double bracket", like the one includes x := y + z...  Could anyone give me some help on this?
46368
I am using   \begin{equation} a = b \end{equation}   to write the equations in my paper. However, the problem is that the number related to each equation is not shown in the correct format like the picture   How can I fix this?  This is what I have at the first of my code:  \usepackage{graphicx} \usepackage[justification=centering]{caption} \usepackage{float} \usepackage{url}% typeset urls \usepackage{times} \usepackage{url} \usepackage{latexsym} \usepackage{fontspec} \usepackage{multirow} \usepackage{listings} \usepackage{setspace} \usepackage{listings} \usepackage{fontspec} \usepackage{amsmath} \usepackage{polyglossia} \usepackage{color} \usepackage{bidi} \newfontfamily\faFont[Script=Arabic]{Yas}  \newenvironment{Fa}{\begin{RTL}\faFont}{\end{RTL}} \newcommand{\fa}[1]{{\faFont\RL{#1}}} \newcommand\Mark[1]{\textsuperscript#1} \definecolor{backcolour}{rgb}{0.95,0.95,0.92} \definecolor{darkblue}{rgb}{0.95,0.95,0.92} \setmainlanguage{english} \setotherlanguage{farsi} \newfontfamily\farsifont[Script=Arabic]{Yas}
97786
I've tried latexdef which does not handle --- as the operand. And \texemdash is defined as a character. So that leaves me once again leaning on the collective wisdom of the group :)
41095
How do I create something like this without getting any errors?  \begin{thm}[\cite[page 10]{ABC2011}] ... \end{thm}   I tried putting various things into {...} brackets, but not eliminating any errors. I probably have misunderstood something about how LaTeX works in the background and the AMS packet:  \usepackage[amsmath,thmmarks]{ntheorem}
52006
How can I Tex this equation?  I try to have exactly the same result but for the moment I only succeeded in having intersecting lines... Thanks!
44544
Below is an example of an asymmetrical limit (or uncertainty)  How can I typeset this in a \LaTeX equation? Such pair of numbers should be vertically stacked while being vertically center-aligned with rest of the equation. Solution $X^{+Y}_{-Z}$
76023
On  I've noticed a strange problem with nested \tilde and \breve commands, when amsmath is used.  In this code the X appears also in the output of the second and the third formula:  \documentclass{article} \usepackage{amsmath} \begin{document} \[ \breve{\tilde{X}} \] \[ \breve{\breve{{T}}\breve{{v}}} \] \[ \tilde{{\tilde{T}}{\tilde{v}}} \] \end{document}     If I don't load amsmath, the code works fine. This seems to be a bug in amsmath. How can it be solved?
90273
Can someone tell me what's wrong with this? because i can't figure out where the missing \right( is.  \begin{equation}  \begin{split} Μ=&amp;-\pi \rho \frac{c^{2}}{4}    \left[c\left(\frac{α}{c}-\frac{1}{2}\right)\ddot{h}+Uc\left(\frac{3}{4}-     \frac{α}{c}\right)\dot{\alpha} +\frac{c^{2}}{4}\left(\frac{9}{8}+      \frac{4α^{2}}{c^{2}}-\frac{4α}{c}\right)\ddot{\alpha} \\  &amp;-\left(\frac{4α}{c}-1\right)U C(k) \left(-\dot{h} +U\alpha + c \left(\frac{3}{4}-\frac{α}{c}\right)\dot{\alpha}\right)\right]  \end{split} \end{equation}