Text Formatting ⇒ when the equations is too long...beyond the page width
when the equations is too long...beyond the page width
Dear All,
I have the following equation which is too long...beyond the page width
how could i divide it into two parts...in a correct way...
thanks for your help
\begin{equation}
%\label{eq:basel-problem}
\theta \emph(t) = \arccos [\frac{A_{1}^2 - (A_0 + (X_{0}\cdot \sin (\omega \cdot t)))^2}{-2\cdot L\cdot (\sqrt{(A_0 + (X_{0}\cdot \sin (\omega \cdot t)))^2 + L^2})}] - \atan((A_0 + (X_{0}\cdot \sin (\omega \cdot t)))/L)
\end{equation}
I have the following equation which is too long...beyond the page width
how could i divide it into two parts...in a correct way...
thanks for your help
\begin{equation}
%\label{eq:basel-problem}
\theta \emph(t) = \arccos [\frac{A_{1}^2 - (A_0 + (X_{0}\cdot \sin (\omega \cdot t)))^2}{-2\cdot L\cdot (\sqrt{(A_0 + (X_{0}\cdot \sin (\omega \cdot t)))^2 + L^2})}] - \atan((A_0 + (X_{0}\cdot \sin (\omega \cdot t)))/L)
\end{equation}
NEW: TikZ book now 40% off at Amazon.com for a short time.

Re: when the equations is too long...beyond the page width
You could use the split-environment provided by amsmath.
OS: Win 7 64-bit LaTeX: MikTeX 2.9 64-bit Editor: TXC 1 RC1
when the equations is too long...beyond the page width
thanks for the answer...Montag wrote:You could use the split-environment provided by amsmath.
could you please give more details... am novice to these terms...
is it part of maths library in latex?
when the equations is too long...beyond the page width
Come on, you could have at least searched for it (on google/bing/yahoo) ...?
Please take a look at sections 1 and 2 in
http://www.latex-community.org/forum/vi ... =37&t=5838
After that, visit http://ctan.org/pkg/amsmath.
I have a question myself: What is the maths library?
Please take a look at sections 1 and 2 in
http://www.latex-community.org/forum/vi ... =37&t=5838
After that, visit http://ctan.org/pkg/amsmath.
I have a question myself: What is the maths library?
OS: Win 7 64-bit LaTeX: MikTeX 2.9 64-bit Editor: TXC 1 RC1
- svend_tveskaeg
- Posts: 478
- Joined: Sun Jul 12, 2009 5:31 am
when the equations is too long...beyond the page width
Here is a document with an example of what Montag is talking about. I have also used the \hphantom command from the mathtools package in order to get the correct alignment.
Code: Select all
Code, edit and compile here:
\documentclass[12pt]{article}\usepackage{mathtools}\begin{document}Something:\begin{gather}\begin{split}\label{something}\theta(t)&= \arccos\left(\frac{A_1^2 - (A_0 + (X_0 \cdot \sin(\omega \cdot t)))^2}{-2 \cdot L \cdot \sqrt{(A_0 + (X_0 \cdot \sin(\omega \cdot t)))^2 + L^2}}\right)\\&\hphantom{{}=} - \arctan((A_0 + (X_{0} \cdot \sin(\omega \cdot t)))/L)\end{split}\end{gather}In \eqref{something} we have something.\end{document}
``In the game of chess, you can never let your adversary see your pieces.''
-- Zapp Brannigan, Futurama (season 1, episode 4)
-- Zapp Brannigan, Futurama (season 1, episode 4)
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
when the equations is too long...beyond the page width
This command comes from the LaTeX kernel.svend_tveskaeg wrote:[…] I have also used the \hphantom command from the mathtools package in order to get the correct alignment.
Please check your example for completeness and functionality and always provide a full but minimal example. The \atan command doesn't exist as such.Sam wrote:[…] I have the following equation which is too long...beyond the page width
how could i divide it into two parts...in a correct way […]
Use the aligned environment from amsmath within equation. The TeX primitive \mathrel provides better alignment of the second line.
Code: Select all
Code, edit and compile here:
\documentclass[11pt,a4paper]{article}\usepackage[T1]{fontenc}\usepackage[utf8]{inputenc}\usepackage{mathtools} % load »amsmath«\begin{document}\begin{equation}\label{eq:basel-problem}\begin{aligned}\theta(t) &= \arccos\left[\frac{A_{1}^2-(A_0+(X_{0}\cdot\sin(\omega\cdot t)))^2}{-2\cdot L\cdot \sqrt{(A_0 + (X_{0}\cdot \sin (\omega \cdot t)))^2 + L^2}}\right] \\&\mathrel{\phantom{=}} -\arctan[A_0+(X_{0}\cdot\sin(\omega\cdot t)))/L]\end{aligned}\end{equation}\end{document}
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
- svend_tveskaeg
- Posts: 478
- Joined: Sun Jul 12, 2009 5:31 am
when the equations is too long...beyond the page width
Arrrh! Thanks!localghost wrote:This command comes from the LaTeX kernel.
``In the game of chess, you can never let your adversary see your pieces.''
-- Zapp Brannigan, Futurama (season 1, episode 4)
-- Zapp Brannigan, Futurama (season 1, episode 4)