PDA

View Full Version : LaTeX


Nusc
Feb16-09, 01:31 PM
1. The problem statement, all variables and given/known data

Hi. I need to insert this equation in a pdf file such that it doesn't cut off. How can I make it appear without cutting off?

2. Relevant equations


\noindent\(\sqrt{\frac{1}{2} e^{\frac{1}{2} \text{$\kappa $u} (-4 u+4 \text{u0}+\text{$\kappa $u})} \sqrt{\pi } \text{$\kappa $u} \left(\text{Erf}\left[u-\text{u0}-\frac{\text{$\kappa
$u}}{2}\right]+\text{Erf}\left[\text{u0}+\frac{\text{$\kappa $u}}{2}\right]\right)^2-\frac{1}{4} e^{\text{$\kappa $u} (-4 u+4 \text{u0}+\text{$\kappa
$u})} \pi \text{$\kappa $u}^2 \left(\text{Erf}\left[u-\text{u0}-\frac{\text{$\kappa $u}}{2}\right]+\text{Erf}\left[\text{u0}+\frac{\text{$\kappa
$u}}{2}\right]\right)^4}\)


3. The attempt at a solution

minger
Feb16-09, 02:43 PM
I'm assuming that your equation is simply too long. I use the split environment to break up long equations. It looks something like this:

\begin{equation}
\begin{split}
first part of really long equation = &\cdots \\
&second part of really long equation
\end{split}
\end{equation}

The two backslashes (\\) represent the end of that line. The ampersands (&) are alignement marks. They will be aligned on each line. Aside from that, do note that if you are using braces that go onto more than one line, then \left. and \right. will need to be used. If the entire example above is parenthized, it will look like:


\begin{equation}
\begin{split}
\left( first part of really long equation = &\cdots \right. \\
& \left. second part of really long equation \right)
\end{split}
\end{equation}


p.s. Watch the placement of the alignment marks. I've found that if they come before or after certain symbols/characters, you'll get a compilation error that doesn't really lend itself to that. Good luck

Nusc
Feb17-09, 01:39 PM
Hey Minger, it's just one expression, not equation sign and it's a large square root.

What do I do then?

Nusc
Feb17-09, 01:48 PM
How do you make the identity operator in latex?
not mathbf{1}

minger
Feb18-09, 07:33 AM
About your square root problem. I would personally just end the square root, then start an over line, so something like:

\begin{equation}
\begin{split}
a &= \sqrt{ really long part of square root } + \cdots \\
\cdots & \overline{ second part of square root}
\end{split}
\end{equation}


I'm not sure what you mean by the identity operator

Nusc
Feb18-09, 01:00 PM
How can I do this wihtout writing it as an equation:

\noindent\(\sqrt{blah}\)

Nusc
Feb18-09, 01:38 PM
I'm trying to format output made by mathematica in to latex

minger
Feb18-09, 02:57 PM
Why does it "need" to not be an equation? Many math symbols and such are only available within the equation processor. You can do a "quick" equation by simply using two dollar signs

$$
put your equation here
$$

However, that doesn't allow the split processor inside of it. If the only objection to the equation is that it puts an auto number on it, you can suppress the numbering by puting
\nonumber right before the \end{equation}