Text Formatting ⇒ when the equations is too long...beyond the page width
when the equations is too long...beyond the page width
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.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
Re: when the equations is too long...beyond the page width
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
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?
- svend_tveskaeg
- Posts: 478
- Joined: Sun Jul 12, 2009 5:31 am
when the equations is too long...beyond the page width
Code: Select all
\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}
-- 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
\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
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.
-- Zapp Brannigan, Futurama (season 1, episode 4)