Nsert this equation in a pdf file

  • Thread starter Thread starter Nusc
  • Start date Start date
  • Tags Tags
    File Pdf
AI Thread Summary
To insert a long equation into a PDF without it being cut off, using the split environment in LaTeX is recommended. This allows breaking the equation into multiple lines for better formatting. The alignment marks and proper use of braces are crucial to avoid compilation errors. For those who need to format output from Mathematica, using double dollar signs can create a quick equation, but it won't support the split processor. Suppressing auto-numbering can be done by adding \nonumber before \end{equation}.
Nusc
Messages
752
Reaction score
2

Homework Statement



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?

Homework Equations



<br /> \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<br /> $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<br /> $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<br /> $u}}{2}\right]\right)^4}\)<br />

The Attempt at a Solution

 
Physics news on Phys.org


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:
Code:
\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:

Code:
\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
 


Hey Minger, it's just one expression, not equation sign and it's a large square root.

What do I do then?
 


How do you make the identity operator in latex?
not mathbf{1}
 


About your square root problem. I would personally just end the square root, then start an over line, so something like:
Code:
\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
 


How can I do this wihtout writing it as an equation:

\noindent\(\sqrt{blah}\)
 


I'm trying to format output made by mathematica into latex
 


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
Code:
$$
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
Code:
\nonumber
right before the
Code:
\end{equation}
 
Back
Top