Math & Science ⇒ Proper aligning of equations
-
- Posts: 402
- Joined: Fri May 20, 2011 9:41 am
Proper aligning of equations
I want the rest of the equations (i.e. #1, #2 etc..) to be properly aligned on the left margin like #3. Please help me with that. Thanks. I've tried using \noindent as well but it didn't make a difference so maybe there is another code? Also, The equal sign for all the equations should line up.
- Attachments
-
- Physics 1L03 Solutions.pdf
- (64.61 KiB) Downloaded 224 times
Last edited by ghostanime2001 on Fri May 27, 2011 8:40 am, edited 1 time in total.
NEW: TikZ book now 40% off at Amazon.com for a short time.

-
- Posts: 162
- Joined: Wed Jun 17, 2009 10:18 pm
Re: Proper aligning of equations
You should post a minimal working example (MWE)[1], and not just the PDF. It makes it a lot easier for us, as we can just copy-paste the code.
[1] http://latex-community.org/forum/viewto ... =46&t=7878
[1] http://latex-community.org/forum/viewto ... =46&t=7878
-
- Posts: 707
- Joined: Tue Mar 25, 2008 5:02 pm
Re: Proper aligning of equations
Are you trying to get a bunch of equations with proper numbering on the left margin, or are you trying to do this as a list? I'd recommend checking out the [leqno] option to the document class first---that moves the equation numbers from the right to the left.
If you want them numbered as you show, please provide the source. If we can't see what you did, we can't see what you did wrong.
If you want them numbered as you show, please provide the source. If we can't see what you did, we can't see what you did wrong.

-
- Posts: 402
- Joined: Fri May 20, 2011 9:41 am
Proper aligning of equations
I know I know... sorry about that i was in a hurry it totally escaped my mind. Here it is:
Note*: I have updated more equations but the problem remains the same. Please put the new additional code into texnicenter to see yourself. Thanks!
Note*: I have updated more equations but the problem remains the same. Please put the new additional code into texnicenter to see yourself. Thanks!
Code: Select all
\documentclass{report}
\usepackage[makeroom,fleqn,margin=1in]{amsmath,fullpage,cancel,multicol,geometry}
\pagestyle{empty}
\providecommand{\e}[1]{\ensuremath{\times 10^{#1}}}
\begin{document}
\begin{enumerate}
\item
$\begin{aligned}[t]
s&=r\theta \\
\frac{s}{r}&=\theta \\
\frac{8.29\e{6}}{6.18\e{6}}&=\theta \\
\text{1.34 rad}&=\theta \\
\end{aligned}$
\item
$\begin{aligned}[t]
\Delta t &=\text{9.09 \cancel{hr}}\left(\frac{\text{60 \cancel{min}}}{\text{1 \cancel{hr}}}\right)\left(\frac{\text{60 s}}{\text{1 \cancel{min}}}\right)=\text{32,724 s} \\
\omega &= ? \\
\omega&=\frac{\theta}{\Delta t}=\frac{\text{1.34 rad}}{\text{32,724 s}}=\text{4.09\e{-5} rad/s}}
\end{aligned}$
\item
$\begin{aligned}[t]
\[
v_{1}&=\frac{2\pi r}{T} & v_{2}&=\frac{2\pi(r+d)}{T} \\
Tv_{1}&=2\pi r & Tv_{2}&=2\pi(r+d) \\
\frac{Tv_{1}}{2\pi}&=r & \frac{Tv_{2}}{2\pi}-d&=r \\
\frac{Tv_{1}}{2\pi}&=\frac{Tv_{2}}{2\pi}-d \\
d&=\frac{Tv_{2}}{2\pi}-\frac{Tv_{1}}{2\pi} \\
d&=\frac{T}{2\pi}\left(v_{2}-v_{1}\right) \\
\frac{2\pi d}{T}&=\Delta v \\
\frac{2\pi(328)}{86,400}&=\Delta v \\
0.02385&=\Delta v \\
\text{2.39\e{-2} m/s}&=\Delta v
\]
\end{aligned}$
\item
$\begin{aligned}[t]
v&=\frac{2\pi d}{T} \\
v&=\frac{2\pi r\cos\theta}{T} \\
v&=\frac{2\pi(6.37\e{6})\cos40.1}{\text{86,400 s}} \\
v&=\text{354.34 m/s} \\
\end{aligned}$
\item
$\begin{aligned}[t]
T_{2}\cos\theta_{2}&=T_{1}\cos\theta_{1} \\
T_{2}&=\frac{T_{1}\cos\theta_{1}}{\cos\theta_{2}} \\
T_{1}\sin\theta_{1}+\left(\frac{T_{1}\cos\theta_{1}}{\cos\theta_{2}}\right)\sin\theta_{2}&=350 \\
T_{1}\sin\theta_{1}+\frac{T_{1}\cos\theta_{1}\sin\theta_{2}}{\cos\theta_{2}}&=350 \\
T_{1}\sin\theta_{1}+T_{1}\frac{\cos\theta_{1}\sin\theta_{2}}{\cos\theta_{2}}&=350 \\
T_{1}\left(\sin\theta_{1}+\frac{\cos\theta_{1}\sin\theta_{2}}{\cos\theta_{2}}\right)&=350 \\
T_{1}\left(\frac{\sin\theta_{1}\cos\theta_{2}+\cos\theta_{1}\sin\theta_{2}}{\cos\theta_{2}}\right)&=350 \\
T_{1}\left(\frac{\sin\left(\theta_{1}+\theta_{2}\right)}{\cos\theta_{2}}\right)&=350 \\
T_{1}&=350\left(\frac{\cos\theta_{2}}{\sin\left(\theta_{1}+\theta_{2}\right)}\right) \\
T_{1}&=\frac{350\cos\theta_{2}}{\sin\left(\theta_{1}+\theta_{2}\right)} \\
T_{1}&=\frac{350\cos23.8}{\sin\left(55.3+23.8\right)} \\
T_{1}&=\frac{350\cos23.8}{\sin\left(79.1\right)} \\
T_{1}&=\text{326.12 N}
\end{aligned}$
\item
$\begin{aligned}[t]
T_{1}\sin\theta_{1}&=350-T_{2}\sin\theta_{2} \\
T_{1}&=\frac{350-T_{2}\sin\theta_{2}}{\sin\theta_{1}} \\
-\left(\frac{350-T_{2}\sin\theta_{2}}{\sin\theta_{1}}\right)\cos\theta_{1}+T_{2}\cos\theta_{2}&=0 \\
-\left(\frac{350\cos\theta_{1}-T_{2}\sin\theta_{2}\cos\theta_{1}}{\sin\theta_{1}}\right)+T_{2}\cos\theta_{2}&=0 \\
\frac{-350\cos\theta_{1}+T_{2}\sin\theta_{2}\cos\theta_{1}}{\sin\theta_{1}}+T_{2}\cos\theta_{2}&=0 \\
\frac{-350\cos\theta_{1}}{\sin\theta_{1}}+\frac{T_{2}\sin\theta_{2}\cos\theta_{1}}{\sin\theta_{1}}+T_{2}\cos\theta_{2}&=0 \\
\frac{-350\cos\theta_{1}}{\sin\theta_{1}}+T_{2}\left(\frac{\sin\theta_{2}\cos\theta_{1}}{\sin\theta_{1}}+\cos\theta_{2}\right)&=0 \\
T_{2}\left(\frac{\sin\theta_{2}\cos\theta_{1}}{\sin\theta_{1}}+\cos\theta_{2}\right)&=\frac{350\cos\theta_{1}}{\sin\theta_{1}} \\
T_{2}\left(\frac{\sin\theta_{2}\cos\theta_{1}+\cos\theta_{2}\sin\theta_{1}}{\sin\theta_{1}}\right)&=\frac{350\cos\theta_{1}}{\sin\theta_{1}} \\
T_{2}\left(\frac{\sin\left(\theta_{2}+\theta_{1}\right)}{\sin\theta_{1}}\right)&=\frac{350\cos\theta_{1}}{\sin\theta_{1}} \\
T_{2}&=\frac{350\cos\theta_{1}}{\sin\theta_{1}}\left(\frac{\sin\theta_{1}}{\sin\left(\theta_{2}+\theta_{1}\right)}\right) \\
T_{2}&=\frac{350\cos\theta_{1}}{\sin\left(\theta_{2}+\theta_{1}\right)} \\
T_{2}&=\frac{350\cos55.3}{\sin\left(23.8+55.3\right)} \\
T_{2}&=\text{203 N}
\end{aligned}$
\end{enumerate}
\end{document}
-
- Posts: 707
- Joined: Tue Mar 25, 2008 5:02 pm
Proper aligning of equations
Your example doesn't process without errors, so I would guess that you have been generating the output file while ignoring said errors. The first error I got is:
LaTeX Error: Unknown option `makeroom' for package `amsmath'
This happens because you use options to a specific package but include about six packages in the \usepackage command; try something like this:
Even with that, however, there are numerous other errors. Fix those and it may actually do what you want. By the way, I don't recommend putting formulas such as you have in in-line math mode; may I suggest the following syntax:
This will produce display mode math for the formulas instead of trying to align them on a text line.
LaTeX Error: Unknown option `makeroom' for package `amsmath'
This happens because you use options to a specific package but include about six packages in the \usepackage command; try something like this:
Code: Select all
\documentclass{report}
\usepackage[margin=1in]{geometry}
\usepackage[fleqn]{amsmath}
\usepackage[makeroom]{cancel}
\usepackage{fullpage,multicol}
etc.
Code: Select all
\begin{align}
T_{2}\cos\theta_{2}&=T_{1}\cos\theta_{1} \\
T_{2}&=\frac{T_{1}\cos\theta_{1}}{\cos\theta_{2}} \\
T_{1}\sin\theta_{1}+\left(\frac{T_{1}\cos\theta_{1}}{\cos\theta_{2}}\right)\sin\theta_{2}&=350 \\
T_{1}\sin\theta_{1}+\frac{T_{1}\cos\theta_{1}\sin\theta_{2}}{\cos\theta_{2}}&=350 \\
T_{1}\sin\theta_{1}+T_{1}\frac{\cos\theta_{1}\sin\theta_{2}}{\cos\theta_{2}}&=350 \\
T_{1}\left(\sin\theta_{1}+\frac{\cos\theta_{1}\sin\theta_{2}}{\cos\theta_{2}}\right)&=350 \\
T_{1}\left(\frac{\sin\theta_{1}\cos\theta_{2}+\cos\theta_{1}\sin\theta_{2}}{\cos\theta_{2}}\right)&=350 \\
T_{1}\left(\frac{\sin\left(\theta_{1}+\theta_{2}\right)}{\cos\theta_{2}}\right)&=350 \\
T_{1}&=350\left(\frac{\cos\theta_{2}}{\sin\left(\theta_{1}+\theta_{2}\right)}\right) \\
T_{1}&=\frac{350\cos\theta_{2}}{\sin\left(\theta_{1}+\theta_{2}\right)} \\
T_{1}&=\frac{350\cos23.8}{\sin\left(55.3+23.8\right)} \\
T_{1}&=\frac{350\cos23.8}{\sin\left(79.1\right)} \\
T_{1}&=\text{326.12 N}
\end{align}
-
- Posts: 402
- Joined: Fri May 20, 2011 9:41 am
Proper aligning of equations
OK here is my code with absolutely no errors:
But I don't want equation numbers to the right of my equations. I want the bunch of equations to look like I'm doing homework (i.e. numbered answers) & that means the first line of the equation should be numbered which it is AND they should be aligned to the left as much as it can so I can have room for longer equations should I come across them later.
Also, when I try putting \begin{align*}...\end{align*} in enumerate environment wierd things happen and everything is screwed up! That's what I am trying to do all this time... is to number the first line of a "block of equations" and align them to the left as much as possible( and that does not mean to have them intended; i mean FULLY left-aligned plus all the equal signs MUST line up!).
Code: Select all
\documentclass{report}
\usepackage{fullpage,multicol}
\usepackage[margin=1in]{geometry}
\usepackage[fleqn]{amsmath}
\usepackage[makeroom]{cancel}
\pagestyle{empty}
\providecommand{\e}[1]{\ensuremath{\times 10^{#1}}}
\begin{document}
\begin{enumerate}
\item
$\begin{aligned}[t]
s&=r\theta \\
\frac{s}{r}&=\theta \\
\frac{8.29\e{6}}{6.18\e{6}}&=\theta \\
\text{1.34 rad}&=\theta \\
\end{aligned}$
\item
$\begin{aligned}[t]
\Delta t &=\text{9.09 \cancel{hr}}\left(\frac{\text{60 \cancel{min}}}{\text{1 \cancel{hr}}}\right)\left(\frac{\text{60 s}}{\text{1 \cancel{min}}}\right)=\text{32,724 s} \\
\omega &= ? \\
\omega&=\frac{\theta}{\Delta t}=\frac{\text{1.34 rad}}{\text{32,724 s}}=\text{4.09\e{-5} rad/s}
\end{aligned}$
\item
$\begin{aligned}[t]
v_{1}&=\frac{2\pi r}{T} & v_{2}&=\frac{2\pi(r+d)}{T} \\
Tv_{1}&=2\pi r & Tv_{2}&=2\pi(r+d) \\
\frac{Tv_{1}}{2\pi}&=r & \frac{Tv_{2}}{2\pi}-d&=r \\
\frac{Tv_{1}}{2\pi}&=\frac{Tv_{2}}{2\pi}-d \\
d&=\frac{Tv_{2}}{2\pi}-\frac{Tv_{1}}{2\pi} \\
d&=\frac{T}{2\pi}\left(v_{2}-v_{1}\right) \\
\frac{2\pi d}{T}&=\Delta v \\
\frac{2\pi(328)}{86,400}&=\Delta v \\
0.02385&=\Delta v \\
\text{2.39\e{-2} m/s}&=\Delta v
\end{aligned}$
\item
$\begin{aligned}[t]
v&=\frac{2\pi d}{T} \\
v&=\frac{2\pi r\cos\theta}{T} \\
v&=\frac{2\pi(6.37\e{6})\cos40.1}{\text{86,400 s}} \\
v&=\text{354.34 m/s} \\
\end{aligned}$
\item
$\begin{aligned}[t]
T_{2}\cos\theta_{2}&=T_{1}\cos\theta_{1} \\
T_{2}&=\frac{T_{1}\cos\theta_{1}}{\cos\theta_{2}} \\
T_{1}\sin\theta_{1}+\left(\frac{T_{1}\cos\theta_{1}}{\cos\theta_{2}}\right)\sin\theta_{2}&=350 \\
T_{1}\sin\theta_{1}+\frac{T_{1}\cos\theta_{1}\sin\theta_{2}}{\cos\theta_{2}}&=350 \\
T_{1}\sin\theta_{1}+T_{1}\frac{\cos\theta_{1}\sin\theta_{2}}{\cos\theta_{2}}&=350 \\
T_{1}\left(\sin\theta_{1}+\frac{\cos\theta_{1}\sin\theta_{2}}{\cos\theta_{2}}\right)&=350 \\
T_{1}\left(\frac{\sin\theta_{1}\cos\theta_{2}+\cos\theta_{1}\sin\theta_{2}}{\cos\theta_{2}}\right)&=350 \\
T_{1}\left(\frac{\sin\left(\theta_{1}+\theta_{2}\right)}{\cos\theta_{2}}\right)&=350 \\
T_{1}&=350\left(\frac{\cos\theta_{2}}{\sin\left(\theta_{1}+\theta_{2}\right)}\right) \\
T_{1}&=\frac{350\cos\theta_{2}}{\sin\left(\theta_{1}+\theta_{2}\right)} \\
T_{1}&=\frac{350\cos23.8}{\sin\left(55.3+23.8\right)} \\
T_{1}&=\frac{350\cos23.8}{\sin\left(79.1\right)} \\
T_{1}&=\text{326.12 N}
\end{aligned}$
\item
$\begin{aligned}[t]
T_{1}\sin\theta_{1}&=350-T_{2}\sin\theta_{2} \\
T_{1}&=\frac{350-T_{2}\sin\theta_{2}}{\sin\theta_{1}} \\
-\left(\frac{350-T_{2}\sin\theta_{2}}{\sin\theta_{1}}\right)\cos\theta_{1}+T_{2}\cos\theta_{2}&=0 \\
-\left(\frac{350\cos\theta_{1}-T_{2}\sin\theta_{2}\cos\theta_{1}}{\sin\theta_{1}}\right)+T_{2}\cos\theta_{2}&=0 \\
\frac{-350\cos\theta_{1}+T_{2}\sin\theta_{2}\cos\theta_{1}}{\sin\theta_{1}}+T_{2}\cos\theta_{2}&=0 \\
\frac{-350\cos\theta_{1}}{\sin\theta_{1}}+\frac{T_{2}\sin\theta_{2}\cos\theta_{1}}{\sin\theta_{1}}+T_{2}\cos\theta_{2}&=0 \\
\frac{-350\cos\theta_{1}}{\sin\theta_{1}}+T_{2}\left(\frac{\sin\theta_{2}\cos\theta_{1}}{\sin\theta_{1}}+\cos\theta_{2}\right)&=0 \\
T_{2}\left(\frac{\sin\theta_{2}\cos\theta_{1}}{\sin\theta_{1}}+\cos\theta_{2}\right)&=\frac{350\cos\theta_{1}}{\sin\theta_{1}} \\
T_{2}\left(\frac{\sin\theta_{2}\cos\theta_{1}+\cos\theta_{2}\sin\theta_{1}}{\sin\theta_{1}}\right)&=\frac{350\cos\theta_{1}}{\sin\theta_{1}} \\
T_{2}\left(\frac{\sin\left(\theta_{2}+\theta_{1}\right)}{\sin\theta_{1}}\right)&=\frac{350\cos\theta_{1}}{\sin\theta_{1}} \\
T_{2}&=\frac{350\cos\theta_{1}}{\sin\theta_{1}}\left(\frac{\sin\theta_{1}}{\sin\left(\theta_{2}+\theta_{1}\right)}\right) \\
T_{2}&=\frac{350\cos\theta_{1}}{\sin\left(\theta_{2}+\theta_{1}\right)} \\
T_{2}&=\frac{350\cos55.3}{\sin\left(23.8+55.3\right)} \\
T_{2}&=\text{203 N}
\end{aligned}$
\end{enumerate}
\end{document}
Also, when I try putting \begin{align*}...\end{align*} in enumerate environment wierd things happen and everything is screwed up! That's what I am trying to do all this time... is to number the first line of a "block of equations" and align them to the left as much as possible( and that does not mean to have them intended; i mean FULLY left-aligned plus all the equal signs MUST line up!).
-
- Posts: 162
- Joined: Wed Jun 17, 2009 10:18 pm
Re: Proper aligning of equations
I'm sorry, I don't understand, what is the problem with your example? It seems to fulfill your demands.
-
- Posts: 402
- Joined: Fri May 20, 2011 9:41 am
Re: Proper aligning of equations
look at the first post on this thread. I'm not trying to make a list. I'm trying to have all my equations line up in a similar manner to question 3 because that looks like the true left margin of my document.
-
- Posts: 162
- Joined: Wed Jun 17, 2009 10:18 pm
Proper aligning of equations
Yeah, and all the equations are left aligned in your example ...
Edit: Sorry if I'm being a little slow on the uptake here.
Edit: Sorry if I'm being a little slow on the uptake here.
- Attachments
-
- example.pdf
- (59.22 KiB) Downloaded 183 times
-
- Posts: 402
- Joined: Fri May 20, 2011 9:41 am
Re: Proper aligning of equations
Okay let me be a little specific. Download Physics 1L03 solutions.pdf. Scroll down to a line that says: "3. [2] v1=2pir/T v2=2pi(r+d)/R
What i'm looking for is to have "1." "2." and corresponding "4." "5." to be aligned like "3." and im trying to do that but it's just not happening so help me with that.
P.S i don't know why there's a "[2]" maybe i made some error in my latex file somewhere.
What i'm looking for is to have "1." "2." and corresponding "4." "5." to be aligned like "3." and im trying to do that but it's just not happening so help me with that.
P.S i don't know why there's a "[2]" maybe i made some error in my latex file somewhere.